[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.5/kdenetwork/krdc
From: Tony Murray <murraytony () gmail ! com>
Date: 2010-10-08 5:19:16
Message-ID: 20101008051916.88B3AAC892 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1183612 by murrant:
Backport r1183611 by murrant from trunk to the 4.5 branch:
Set focus to the input line when we the new connection page is activated.
M +6 -2 mainwindow.cpp
--- branches/KDE/4.5/kdenetwork/krdc/mainwindow.cpp #1183611:1183612
@@ -543,7 +543,10 @@
if (m_systemTrayIcon) \
m_systemTrayIcon->setAssociatedWidget(m_fullscreenWindow); showRemoteViewToolbar();
}
+ if (m_tabWidget->currentWidget() == m_newConnectionWidget) {
+ m_addressInput->setFocus();
}
+}
QScrollArea *MainWindow::createScrollArea(QWidget *parent, RemoteView *remoteView)
{
@@ -1049,8 +1052,10 @@
m_currentRemoteView = index;
- if (m_tabWidget->currentWidget() == m_newConnectionWidget)
+ if (m_tabWidget->currentWidget() == m_newConnectionWidget) {
m_currentRemoteView = -1;
+ m_addressInput->setFocus();
+ }
const QString tabTitle = m_tabWidget->tabText(index).remove('&');
setCaption(tabTitle == i18n("New Connection") ? QString() : tabTitle);
@@ -1092,7 +1097,6 @@
}
connect(m_addressInput, SIGNAL(returnPressed()), SLOT(newConnection()));
- m_addressInput->setFocus();
m_addressInput->setToolTip(i18n("Type an IP or DNS Name here. Clear the line \
to get a list of connection methods."));
KPushButton *connectButton = new KPushButton(m_newConnectionWidget);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic