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)
{
QListWidgetItem *item = ui.listWidget->takeItem(ui.listWidget->count()-1);
ui.listWidget->insertItem(0, item);
QListWidgetItem *item = ui.listWidget->takeItem(0);
ui.listWidget->addItem(item);
}
}
@ -439,8 +439,8 @@ void DialogDetail::ScrollDown()
{
if (ui.listWidget->count() > 1)
{
QListWidgetItem *item = ui.listWidget->takeItem(0);
ui.listWidget->addItem(item);
QListWidgetItem *item = ui.listWidget->takeItem(ui.listWidget->count()-1);
ui.listWidget->insertItem(0, item);
}
}

View File

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