diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-21 22:15:48 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-21 22:15:48 +0200 |
commit | 506bff7b0ea8619d634d16088a4168b088af8359 (patch) | |
tree | b03e468882b0a5d0688f2a76fb5ed37547c7cc7c /plugingui/maintab.cc | |
parent | 05bb6ad8f1ad6d3abf835a9ad91a5b42f90db920 (diff) |
Remove version number at the bottom and the logo from the about tab.
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r-- | plugingui/maintab.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc index d93fd5f..98e06cc 100644 --- a/plugingui/maintab.cc +++ b/plugingui/maintab.cc @@ -74,17 +74,25 @@ MainTab::MainTab(Widget* parent, CONNECT(this, settings_notifier.enable_velocity_modifier, &humanizer_frame, &FrameWidget::setOnSwitch); - CONNECT(&humanizer_frame, onSwitchChangeNotifier, this, &MainTab::humanizerOnChange); - CONNECT(this, settings_notifier.disk_cache_enable, &diskstreaming_frame, &FrameWidget::setOnSwitch); - CONNECT(&diskstreaming_frame, onSwitchChangeNotifier, this, &MainTab::diskStreamingOnChange); } +void MainTab::resize(std::size_t width, std::size_t height) +{ + Widget::resize(width, height); + + // DrumGizmo logo + Painter painter(*this); + painter.clear(); + + painter.drawImage(width - logo.width(), height - logo.height(), logo); +} + void MainTab::humanizerOnChange(bool on) { settings.enable_velocity_modifier.store(on); |