From 728abec962f993309acf3ebb1317b5f3773f18c7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 8 Feb 2017 22:22:00 +0100 Subject: UI resize refactoring part 1. --- plugingui/mainwindow.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugingui/mainwindow.cc') diff --git a/plugingui/mainwindow.cc b/plugingui/mainwindow.cc index cff6b04..3a1727f 100644 --- a/plugingui/mainwindow.cc +++ b/plugingui/mainwindow.cc @@ -39,7 +39,6 @@ MainWindow::MainWindow(Settings& settings, void* native_window) { CONNECT(this, sizeChangeNotifier, this, &MainWindow::sizeChanged); CONNECT(eventHandler(), closeNotifier, this, &MainWindow::closeEventHandler); - resize(370, 330); tabs.move(16, 0); // x-offset to make room for the left side bar. setCaption("DrumGizmo v" VERSION); } @@ -90,7 +89,7 @@ void MainWindow::repaintEvent(RepaintEvent* repaintEvent) painter.drawImage(width() - 16, 0, sidebar); } -void MainWindow::sizeChanged(int width, int height) +void MainWindow::sizeChanged(std::size_t width, std::size_t height) { tabs.resize(width - 2 * 16, height); } -- cgit v1.2.3