[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/kicker/applets/systemtray
From: Gregory S. Hayes <syncomm () gmail ! com>
Date: 2006-01-02 22:15:41
Message-ID: 1136240141.631608.24149.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 493676 by syncomm:
Update for KActionSelector
M +8 -8 systemtrayapplet.cpp
--- trunk/KDE/kdebase/kicker/applets/systemtray/systemtrayapplet.cpp #493675:493676
@@ -31,7 +31,7 @@
#include <QResizeEvent>
#include <QByteArray>
-#include <Q3ListBox>
+#include <QListWidget>
#include <dcopclient.h>
#include <kapplication.h>
#include <klocale.h>
@@ -213,17 +213,17 @@
m_iconSelector->setShowUpDownButtons(false);
m_settingsDialog->setMainWidget(m_iconSelector);
- Q3ListBox *shownListBox = m_iconSelector->availableListBox();
- Q3ListBox *hiddenListBox = m_iconSelector->selectedListBox();
+ QListWidget *shownListWidget = m_iconSelector->availableListWidget();
+ QListWidget *hiddenListWidget = m_iconSelector->selectedListWidget();
TrayEmbedList::const_iterator it = m_shownWins.begin();
TrayEmbedList::const_iterator itEnd = m_shownWins.end();
for (; it != itEnd; ++it)
{
QString name = KWin::windowInfo((*it)->containerWinId()).name();
- if(!shownListBox->findItem(name, Qt::MatchExactly | Qt::MatchCaseSensitive))
+ if(!shownListWidget->findItem(name, Qt::MatchExactly | Qt::MatchCaseSensitive))
{
- shownListBox->insertItem(KWin::icon((*it)->containerWinId(), 22, 22, true), name);
+ shownListWidget->insertItem(KWin::icon((*it)->containerWinId(), 22, 22, true), name);
}
}
@@ -232,9 +232,9 @@
for (; it != itEnd; ++it)
{
QString name = KWin::windowInfo((*it)->containerWinId()).name();
- if(!hiddenListBox->findItem(name, Qt::MatchExactly | Qt::MatchCaseSensitive))
+ if(!hiddenListWidget->findItem(name, Qt::MatchExactly | Qt::MatchCaseSensitive))
{
- hiddenListBox->insertItem(KWin::icon((*it)->containerWinId(), 22, 22, true), name);
+ hiddenListWidget->insertItem(KWin::icon((*it)->containerWinId(), 22, 22, true), name);
}
}
@@ -272,7 +272,7 @@
selection.clear();*/
m_hiddenIconList.clear();
- Q3ListBoxItem* item = m_iconSelector->selectedListBox()->firstItem();
+ QListWidgetItem* item = m_iconSelector->selectedListWidget()->firstItem();
for (; item; item = item->next())
{
m_hiddenIconList.append(item->text());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic