Fixed toolTips of scrollUp and scrollDown buttons

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-11-13 14:04:51 +02:00
parent ef1fff7a22
commit b9deb50c1b
2 changed files with 6 additions and 6 deletions

View File

@ -429,8 +429,8 @@ void DialogDetail::ScrollUp()
{ {
if (ui.listWidget->count() > 1) if (ui.listWidget->count() > 1)
{ {
QListWidgetItem *item = ui.listWidget->takeItem(ui.listWidget->count()-1); QListWidgetItem *item = ui.listWidget->takeItem(0);
ui.listWidget->insertItem(0, item); ui.listWidget->addItem(item);
} }
} }
@ -439,8 +439,8 @@ void DialogDetail::ScrollDown()
{ {
if (ui.listWidget->count() > 1) if (ui.listWidget->count() > 1)
{ {
QListWidgetItem *item = ui.listWidget->takeItem(0); QListWidgetItem *item = ui.listWidget->takeItem(ui.listWidget->count()-1);
ui.listWidget->addItem(item); ui.listWidget->insertItem(0, item);
} }
} }

View File

@ -355,7 +355,7 @@
<item> <item>
<widget class="QToolButton" name="toolButtonDown"> <widget class="QToolButton" name="toolButtonDown">
<property name="toolTip"> <property name="toolTip">
<string>Scroll down</string> <string>Scroll down the list</string>
</property> </property>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
@ -368,7 +368,7 @@
<item> <item>
<widget class="QToolButton" name="toolButtonUp"> <widget class="QToolButton" name="toolButtonUp">
<property name="toolTip"> <property name="toolTip">
<string>Scroll up</string> <string>Scroll up the list</string>
</property> </property>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>