diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-04-29 01:28:58 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-29 01:28:58 +0200 |
commit | 75dfbc61fcc451239254049a362b227e72d94d90 (patch) | |
tree | 2dccac97c5c7386cf9763f91a18ae6ce779faef0 /application/pages | |
parent | f8650e3965582a57c3d0ccb5f234e6229051b16a (diff) | |
download | MultiMC-75dfbc61fcc451239254049a362b227e72d94d90.tar MultiMC-75dfbc61fcc451239254049a362b227e72d94d90.tar.gz MultiMC-75dfbc61fcc451239254049a362b227e72d94d90.tar.lz MultiMC-75dfbc61fcc451239254049a362b227e72d94d90.tar.xz MultiMC-75dfbc61fcc451239254049a362b227e72d94d90.zip |
GH-925 add scroll to bottom button to LogPage
Diffstat (limited to 'application/pages')
-rw-r--r-- | application/pages/LogPage.cpp | 5 | ||||
-rw-r--r-- | application/pages/LogPage.h | 1 | ||||
-rw-r--r-- | application/pages/LogPage.ui | 59 |
3 files changed, 49 insertions, 16 deletions
diff --git a/application/pages/LogPage.cpp b/application/pages/LogPage.cpp index 8f9edb96..7d2013cc 100644 --- a/application/pages/LogPage.cpp +++ b/application/pages/LogPage.cpp @@ -69,6 +69,11 @@ void LogPage::on_btnClear_clicked() ui->text->clear(); } +void LogPage::on_btnBottom_clicked() +{ + ui->text->verticalScrollBar()->setSliderPosition(ui->text->verticalScrollBar()->maximum()); +} + void LogPage::on_trackLogCheckbox_clicked(bool checked) { m_write_active = checked; diff --git a/application/pages/LogPage.h b/application/pages/LogPage.h index e28c9690..15c123d7 100644 --- a/application/pages/LogPage.h +++ b/application/pages/LogPage.h @@ -65,6 +65,7 @@ private slots: void on_btnPaste_clicked(); void on_btnCopy_clicked(); void on_btnClear_clicked(); + void on_btnBottom_clicked(); void on_trackLogCheckbox_clicked(bool checked); diff --git a/application/pages/LogPage.ui b/application/pages/LogPage.ui index 089bc906..6beb801a 100644 --- a/application/pages/LogPage.ui +++ b/application/pages/LogPage.ui @@ -36,21 +36,7 @@ <string>Tab 1</string> </attribute> <layout class="QGridLayout" name="gridLayout"> - <item row="2" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>Search:</string> - </property> - </widget> - </item> - <item row="2" column="2"> - <widget class="QPushButton" name="findButton"> - <property name="text"> - <string>Find</string> - </property> - </widget> - </item> - <item row="1" column="0" colspan="3"> + <item row="1" column="0" colspan="5"> <widget class="QPlainTextEdit" name="text"> <property name="undoRedoEnabled"> <bool>false</bool> @@ -69,7 +55,7 @@ </property> </widget> </item> - <item row="0" column="0" colspan="3"> + <item row="0" column="0" colspan="5"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QCheckBox" name="trackLogCheckbox"> @@ -126,15 +112,56 @@ </item> </layout> </item> + <item row="2" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Search:</string> + </property> + </widget> + </item> + <item row="2" column="2"> + <widget class="QPushButton" name="findButton"> + <property name="text"> + <string>Find</string> + </property> + </widget> + </item> <item row="2" column="1"> <widget class="QLineEdit" name="searchBar"/> </item> + <item row="2" column="4"> + <widget class="QPushButton" name="btnBottom"> + <property name="toolTip"> + <string>Scroll all the way to bottom</string> + </property> + <property name="text"> + <string>Bottom</string> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="Line" name="line"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + </item> </layout> </widget> </widget> </item> </layout> </widget> + <tabstops> + <tabstop>tabWidget</tabstop> + <tabstop>trackLogCheckbox</tabstop> + <tabstop>btnCopy</tabstop> + <tabstop>btnPaste</tabstop> + <tabstop>btnClear</tabstop> + <tabstop>text</tabstop> + <tabstop>searchBar</tabstop> + <tabstop>findButton</tabstop> + </tabstops> <resources/> <connections/> </ui> |