Fixed the show / hide dialog shortcuts to take the splitter into consideration

Fixed the show / hide dialog shortcuts to take the splitter into consideration,
 So, here's the deal.
 We have a few QSplitters that takes care of helping us with the
 size of a few widgets, they are ok, and we should continue using them
 to manage the visibility of them too. But the way that we did before was to
 widget->hide(); something, and if you hided something using the splitter,
 by holding it's handle and collapsing the widget, then you used the 'ctrl+number'
 shortcut to show it, it whould only show a gray panel.

 This patch makes everything behave using the splitters.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-06-12 15:54:55 -03:00
parent 9993d49966
commit 7e9d6e2829
3 changed files with 55 additions and 17 deletions

View file

@ -14,8 +14,8 @@
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QSplitter" name="mainSplitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
@ -92,7 +92,7 @@
</widget>
</widget>
</item>
<item>
<item row="1" column="0">
<widget class="KMessageWidget" name="mainErrorMessage" native="true"/>
</item>
</layout>
@ -147,7 +147,9 @@
<addaction name="actionViewList"/>
<addaction name="actionViewProfile"/>
<addaction name="actionViewInfo"/>
<addaction name="actionViewGlobe"/>
<addaction name="actionViewAll"/>
<addaction name="separator"/>
<addaction name="actionPreviousDC"/>
<addaction name="actionNextDC"/>
</widget>
@ -323,7 +325,7 @@
<string>View All</string>
</property>
<property name="shortcut">
<string>Ctrl+4</string>
<string>Ctrl+5</string>
</property>
</action>
<action name="actionPreviousDC">
@ -365,6 +367,14 @@
<string>F1</string>
</property>
</action>
<action name="actionViewGlobe">
<property name="text">
<string>View Globe</string>
</property>
<property name="shortcut">
<string>Ctrl+4</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>