summaryrefslogtreecommitdiff
path: root/plugingui/maintab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r--plugingui/maintab.cc14
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);