summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar Linde <oskar.linde@gmail.com>2014-02-01 15:06:53 (GMT)
committerMarius Kintel <marius@kintel.net>2014-02-06 05:46:27 (GMT)
commitb124c4efd82a653e22d4eb898a0f22bc9e47d453 (patch)
tree6f10bb6e4176bf5ab2d992c1eec3e7efe5b72369
parent197e8955a4e78cc0eea94181ed0034f11320c0cc (diff)
Editor: Subtle UI Tweak
Return in the find or replace field will animate the triggered button
-rw-r--r--src/mainwin.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 2c70102..6c63fc8 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -381,7 +381,7 @@ MainWindow::MainWindow(const QString &filename)
Preferences::inst()->apply();
connect(this->findTypeComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(selectFindType(int)));
- connect(this->findInputField, SIGNAL(returnPressed()), this, SLOT(findNext()));
+ connect(this->findInputField, SIGNAL(returnPressed()), this->nextButton, SLOT(animateClick()));
find_panel->installEventFilter(this);
connect(this->prevButton, SIGNAL(clicked()), this, SLOT(findPrev()));
@@ -389,7 +389,7 @@ MainWindow::MainWindow(const QString &filename)
connect(this->hideFindButton, SIGNAL(clicked()), find_panel, SLOT(hide()));
connect(this->replaceButton, SIGNAL(clicked()), this, SLOT(replace()));
connect(this->replaceAllButton, SIGNAL(clicked()), this, SLOT(replaceAll()));
- connect(this->replaceInputField, SIGNAL(returnPressed()), this, SLOT(replace()));
+ connect(this->replaceInputField, SIGNAL(returnPressed()), this->replaceButton, SLOT(animateClick()));
// make sure it looks nice..
QSettings settings;
contact: Jan Huwald // Impressum