diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-08 22:22:00 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-08 22:22:00 +0100 |
commit | 728abec962f993309acf3ebb1317b5f3773f18c7 (patch) | |
tree | ab4e22fd914681fa42babfcba184a932956c9667 /plugingui/mainwindow.cc | |
parent | f762a1fbf4ccf565953855695ddd0bf60b34bf8e (diff) |
UI resize refactoring part 1.
Diffstat (limited to 'plugingui/mainwindow.cc')
-rw-r--r-- | plugingui/mainwindow.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |