diff options
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.ui | 72 |
2 files changed, 45 insertions, 29 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index 86fada43..fd0e44b8 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -53,6 +53,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ connect(ui->tool_find_prev, SIGNAL(clicked()), this, SLOT(findPrev()) ); connect(ui->tool_replace, SIGNAL(clicked()), this, SLOT(replaceOne()) ); connect(ui->tool_replace_all, SIGNAL(clicked()), this, SLOT(replaceAll()) ); + connect(ui->tool_hideReplaceGroup, SIGNAL(clicked()), this, SLOT(closeFindReplace()) ); connect(ui->line_find, SIGNAL(returnPressed()), this, SLOT(findNext()) ); connect(ui->line_replace, SIGNAL(returnPressed()), this, SLOT(replaceOne()) ); connect(colorDLG, SIGNAL(colorsChanged()), this, SLOT(UpdateHighlighting()) ); @@ -96,6 +97,7 @@ void MainUI::updateIcons(){ ui->tool_find_casesensitive->setIcon(LXDG::findIcon("format-text-italic")); ui->tool_replace->setIcon(LXDG::findIcon("arrow-down")); ui->tool_replace_all->setIcon(LXDG::findIcon("arrow-down-double")); + ui->tool_hideReplaceGroup->setIcon(LXDG::findIcon("dialog-close","")); //ui->tool_find_next->setIcon(LXDG::findIcon("")); QTimer::singleShot(0,colorDLG, SLOT(updateIcons()) ); diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.ui b/src-qt5/desktop-utils/lumina-textedit/MainUI.ui index fd300460..3c6de123 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.ui @@ -49,33 +49,30 @@ </widget> </item> <item> - <widget class="QGroupBox" name="groupReplace"> - <property name="title"> - <string>Find/Replace</string> - </property> - <property name="flat"> - <bool>false</bool> + <widget class="QFrame" name="groupReplace"> + <property name="frameShape"> + <enum>QFrame::StyledPanel</enum> </property> <layout class="QGridLayout" name="gridLayout"> <property name="leftMargin"> - <number>1</number> + <number>2</number> </property> <property name="topMargin"> - <number>3</number> + <number>2</number> </property> <property name="rightMargin"> - <number>1</number> + <number>2</number> </property> <property name="bottomMargin"> - <number>1</number> + <number>2</number> </property> <property name="spacing"> <number>2</number> </property> - <item row="1" column="1"> + <item row="2" column="1"> <widget class="QLineEdit" name="line_replace"/> </item> - <item row="0" column="2"> + <item row="1" column="2"> <widget class="QToolButton" name="tool_find_prev"> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> @@ -88,17 +85,7 @@ </property> </widget> </item> - <item row="0" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>Find:</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="0" column="3"> + <item row="1" column="3"> <widget class="QToolButton" name="tool_find_next"> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> @@ -111,7 +98,7 @@ </property> </widget> </item> - <item row="1" column="0"> + <item row="2" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>Replace:</string> @@ -121,10 +108,10 @@ </property> </widget> </item> - <item row="0" column="1"> + <item row="1" column="1"> <widget class="QLineEdit" name="line_find"/> </item> - <item row="0" column="4"> + <item row="1" column="4"> <widget class="QToolButton" name="tool_find_casesensitive"> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> @@ -149,7 +136,7 @@ </property> </widget> </item> - <item row="1" column="2"> + <item row="2" column="2"> <widget class="QToolButton" name="tool_replace"> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> @@ -162,7 +149,7 @@ </property> </widget> </item> - <item row="1" column="3"> + <item row="2" column="3"> <widget class="QToolButton" name="tool_replace_all"> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> @@ -175,6 +162,33 @@ </property> </widget> </item> + <item row="1" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QToolButton" name="tool_hideReplaceGroup"> + <property name="statusTip"> + <string>Hide the find/replace options</string> + </property> + <property name="text"> + <string>...</string> + </property> + <property name="autoRaise"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Find:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + </layout> + </item> </layout> </widget> </item> @@ -186,7 +200,7 @@ <x>0</x> <y>0</y> <width>505</width> - <height>23</height> + <height>22</height> </rect> </property> <widget class="QMenu" name="menuFile"> |