diff options
| author | 2009-03-17 22:33:56 +0000 | |
|---|---|---|
| committer | 2009-03-17 22:33:56 +0000 | |
| commit | 3e8612f8b1655ccb81f10f9fcb04138c470f9f09 (patch) | |
| tree | f1d8adf9c9ae5c81a8f8073b084d5323f32be543 /src | |
| parent | implemented #340 (diff) | |
| download | KVIrc-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')
| -rw-r--r-- | src/kvilib/ext/kvi_regchan.cpp | 1 | ||||
| -rw-r--r-- | src/kvirc/ui/kvi_console.cpp | 13 | ||||
| -rw-r--r-- | src/kvirc/ui/kvi_maskeditor.cpp | 2 | ||||
| -rw-r--r-- | src/modules/channelsjoin/channelsjoinwindow.cpp | 10 |
4 files changed, 12 insertions, 14 deletions
diff --git a/src/kvilib/ext/kvi_regchan.cpp b/src/kvilib/ext/kvi_regchan.cpp index 34ab8d2b8..c072dc760 100644 --- a/src/kvilib/ext/kvi_regchan.cpp +++ b/src/kvilib/ext/kvi_regchan.cpp @@ -79,6 +79,7 @@ void KviRegisteredChannelDataBase::save(const QString &filename) { KviConfig cfg(filename,KviConfig::Write); cfg.clear(); + cfg.preserveEmptyGroups(true); KviPointerHashTableIterator<const char *,KviRegisteredChannelList> it(*m_pChannelDict); while(KviRegisteredChannelList * l = it.current()) diff --git a/src/kvirc/ui/kvi_console.cpp b/src/kvirc/ui/kvi_console.cpp index 95fec1f72..24476b956 100644 --- a/src/kvirc/ui/kvi_console.cpp +++ b/src/kvirc/ui/kvi_console.cpp @@ -394,8 +394,7 @@ void KviConsole::saveProperties(KviConfig *cfg) { KviWindow::saveProperties(cfg); cfg->writeEntry("Splitter",m_pSplitter->sizes()); - cfg->writeEntry("NotifyListViewVisible",m_pNotifyListView->isVisible()); - + cfg->writeEntry("NotifyListViewVisible",m_pNotifyViewButton->isChecked()); } void KviConsole::getBaseLogFileName(QString &buffer) @@ -421,15 +420,7 @@ void KviConsole::loadProperties(KviConfig *cfg) QList<int> def; def.append((w * 85) / 100); def.append((w * 15) / 100); - QList<int> cur = cfg->readIntListEntry("Splitter",def); - // check the size correctness - if(cur.count() != 2)cur = def; - else { - int i1 = cur[0]; - int i2 = cur[1]; - if(i1 < i2)cur = def; - } - m_pSplitter->setSizes(cur); + m_pSplitter->setSizes(cfg->readIntListEntry("Splitter",def)); KviWindow::loadProperties(cfg); showNotifyList(cfg->readBoolEntry("NotifyListViewVisible",false)); } diff --git a/src/kvirc/ui/kvi_maskeditor.cpp b/src/kvirc/ui/kvi_maskeditor.cpp index 23d4e5f71..0bf1f9bb6 100644 --- a/src/kvirc/ui/kvi_maskeditor.cpp +++ b/src/kvirc/ui/kvi_maskeditor.cpp @@ -306,7 +306,7 @@ void KviMaskEditor::removeMask(KviMaskEntry *e) } } -void KviMaskEditor::itemDoubleClicked( KviTalTreeWidgetItem * pItem,int column) +void KviMaskEditor::itemDoubleClicked( KviTalTreeWidgetItem * pItem, int ) { if(pItem) { 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()); + } } /* |
