From 8678e2d57c6e456952dc2d75857f60b0129ed0ff Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 27 Jun 2013 15:33:43 +0300 Subject: Better positioning of the plus sign icons in the Equip. tab There are a couple of problems with said icons: - When the Equip. tab is first seen, no relative event is monitored so that the correct position is updated and the icons are positioned. To solve that we connect the signal MainTab::currentChanged(int) and call MainTab::equipmentPlusUpdate(). - When the info-profile QSplitter resizes with a snap towards/from the edges of the main window, no resize handler is called such as MainTab::resizeEvent(). A solution is to monitor the resize of the info-profile splitter with MainWindow::on_infoProfileSplitter_splitterMoved() and again call MainTab::equipmentPlusUpdate() Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/maintab.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/maintab.h') diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 739c089ec..764ed2306 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -43,6 +43,7 @@ public: virtual void hideEvent(QHideEvent* ); void initialUiSetup(); + void equipmentPlusUpdate(); public slots: @@ -58,6 +59,7 @@ public slots: void on_notes_textChanged(); void on_rating_valueChanged(int value); void on_visibility_valueChanged(int value); + void tabChanged(int idx); private: Ui::MainTab *ui; -- cgit v1.2.3-70-g09d2