aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-21 12:27:33 -0400
committerKen Moore <moorekou@gmail.com>2016-04-21 12:27:33 -0400
commitd549b8358c2be70b2e0a6e4b4849478565630bbe (patch)
tree3dca96667c90a07d5b0a533656ad55b3dabd5a17 /desktop-utilities
parentFix up the bracket matching routine to accomodate for nested brackets. (diff)
downloadlumina-d549b8358c2be70b2e0a6e4b4849478565630bbe.tar.gz
lumina-d549b8358c2be70b2e0a6e4b4849478565630bbe.tar.bz2
lumina-d549b8358c2be70b2e0a6e4b4849478565630bbe.zip
Fix up the mouse focus when switching tabs around.
Diffstat (limited to 'desktop-utilities')
-rw-r--r--desktop-utilities/lumina-textedit/MainUI.cpp1
-rw-r--r--desktop-utilities/lumina-textedit/MainUI.ui2
2 files changed, 2 insertions, 1 deletions
diff --git a/desktop-utilities/lumina-textedit/MainUI.cpp b/desktop-utilities/lumina-textedit/MainUI.cpp
index 199dba1d..7425b399 100644
--- a/desktop-utilities/lumina-textedit/MainUI.cpp
+++ b/desktop-utilities/lumina-textedit/MainUI.cpp
@@ -232,6 +232,7 @@ void MainUI::tabChanged(){
ui->actionSave_File->setEnabled(changes);
ui->actionSave_File_As->setEnabled(changes);
this->setWindowTitle( ui->tabWidget->tabText( ui->tabWidget->currentIndex() ) );
+ if(!ui->line_find->hasFocus() && !ui->line_replace->hasFocus()){ ui->tabWidget->currentWidget()->setFocus(); }
}
void MainUI::tabClosed(int tab){
diff --git a/desktop-utilities/lumina-textedit/MainUI.ui b/desktop-utilities/lumina-textedit/MainUI.ui
index 0bd17b99..26fceac4 100644
--- a/desktop-utilities/lumina-textedit/MainUI.ui
+++ b/desktop-utilities/lumina-textedit/MainUI.ui
@@ -33,7 +33,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="focusPolicy">
- <enum>Qt::ClickFocus</enum>
+ <enum>Qt::NoFocus</enum>
</property>
<property name="tabsClosable">
<bool>true</bool>
bgstack15