aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin/channelsjoinwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-03-17 22:33:56 +0000
committerGravatar Fabio Bas2009-03-17 22:33:56 +0000
commit3e8612f8b1655ccb81f10f9fcb04138c470f9f09 (patch)
treef1d8adf9c9ae5c81a8f8073b084d5323f32be543 /src/modules/channelsjoin/channelsjoinwindow.cpp
parentimplemented #340 (diff)
downloadKVIrc-3e8612f8b1655ccb81f10f9fcb04138c470f9f09.tar.gz
KVIrc-3e8612f8b1655ccb81f10f9fcb04138c470f9f09.tar.bz2
KVIrc-3e8612f8b1655ccb81f10f9fcb04138c470f9f09.zip
fixed tmphighlight items in popups
fixed registered channels config saving (#400) fixed notify list widget config saving (#400) git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3149 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/channelsjoin/channelsjoinwindow.cpp')
-rw-r--r--src/modules/channelsjoin/channelsjoinwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/channelsjoin/channelsjoinwindow.cpp b/src/modules/channelsjoin/channelsjoinwindow.cpp
index 6db6c1f3d..4d0558fa8 100644
--- a/src/modules/channelsjoin/channelsjoinwindow.cpp
+++ b/src/modules/channelsjoin/channelsjoinwindow.cpp
@@ -68,7 +68,6 @@ KviChannelsJoinWindow::KviChannelsJoinWindow(QWidget * par, const char * name)
m_pTreeWidget->setRootIsDecorated(true);
m_pTreeWidget->setSelectionMode(QAbstractItemView::SingleSelection);
g->addWidget(m_pTreeWidget,0,0,1,2);
- //g->addMultiCellWidget(m_pTreeWidget,0,0,0,1);
connect(m_pTreeWidget,SIGNAL(itemClicked(QTreeWidgetItem *,int)),this,SLOT(itemClicked(QTreeWidgetItem *,int)));
connect(m_pTreeWidget,SIGNAL(itemActivated(QTreeWidgetItem *,int)),this,SLOT(itemDoubleClicked(QTreeWidgetItem *,int)));
@@ -90,7 +89,6 @@ KviChannelsJoinWindow::KviChannelsJoinWindow(QWidget * par, const char * name)
m_pPass->setEchoMode(QLineEdit::Password);
g->addWidget(m_pGroupBox,1,0,1,2);
- //g->addMultiCellWidget(m_pGroupBox,1,1,0,1);
KviTalHBox * hb = new KviTalHBox(this);
hb->setSpacing(4);
@@ -301,6 +299,14 @@ void KviChannelsJoinWindow::regClicked()
KviKvsScript::run(szCmd,w);
fillListView();
+
+ //focus the new item (in reality, the first matching one)
+ QList<QTreeWidgetItem*> items = m_pTreeWidget->findItems(szTmp, Qt::MatchRecursive | Qt::MatchExactly);
+ if(!items.empty())
+ {
+ m_pTreeWidget->setCurrentItem(items.first());
+ m_pTreeWidget->scrollToItem(items.first());
+ }
}
/*