diff options
| author | 2008-05-18 12:08:40 +0000 | |
|---|---|---|
| committer | 2008-05-18 12:08:40 +0000 | |
| commit | 13cc59072532f7c2d35e6297d7e5985be9918365 (patch) | |
| tree | 28f7cd271df99e0e6867f7a0c78ace7d392a0a43 /src/modules/theme/managementdialog.cpp | |
| parent | translation targets: cleaned up the bash scripting stuff (now it should be qu... (diff) | |
| download | KVIrc-13cc59072532f7c2d35e6297d7e5985be9918365.tar.gz KVIrc-13cc59072532f7c2d35e6297d7e5985be9918365.tar.bz2 KVIrc-13cc59072532f7c2d35e6297d7e5985be9918365.zip | |
QT4 resource port (wip)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1812 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/managementdialog.cpp')
| -rw-r--r-- | src/modules/theme/managementdialog.cpp | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/src/modules/theme/managementdialog.cpp b/src/modules/theme/managementdialog.cpp index 1a677122a..74c048514 100644 --- a/src/modules/theme/managementdialog.cpp +++ b/src/modules/theme/managementdialog.cpp @@ -183,13 +183,16 @@ KviThemeManagementDialog::KviThemeManagementDialog(QWidget * parent) m_pListWidget->setSelectionMode(QAbstractItemView::ExtendedSelection); m_pListWidget->setSortingEnabled(true); connect(m_pListWidget,SIGNAL(itemActivated(QListWidgetItem *)),this,SLOT(applyTheme(QListWidgetItem *))); + + //FIXME tooltip + //connect(m_pListWidget,SIGNAL(tipRequest(QListWidgetItem *,const QPoint &)),this,SLOT(tipRequest(QListWidgetItem *,const QPoint &))); connect(m_pListWidget,SIGNAL(customContextMenuRequested(const QPoint &)), this,SLOT(contextMenuRequested(const QPoint &))); connect(m_pListWidget,SIGNAL(itemSelectionChanged()),this,SLOT(enableDisableButtons())); g->addWidget(m_pListWidget,1,0); - KviDynamicToolTip * tip = new KviDynamicToolTip(m_pListWidget); - connect(tip,SIGNAL(tipRequest(KviDynamicToolTip *,const QPoint &)),this,SLOT(tipRequest(KviDynamicToolTip *,const QPoint &))); +// KviDynamicToolTip * tip = new KviDynamicToolTip(m_pListWidget); +// connect(tip,SIGNAL(tipRequest(KviDynamicToolTip *,const QPoint &)),this,SLOT(tipRequest(KviDynamicToolTip *,const QPoint &))); QPushButton * b = new QPushButton(__tr2qs("Close"),this); b->setMaximumSize(b->sizeHint().width(),b->sizeHint().height()); @@ -400,13 +403,15 @@ void KviThemeManagementDialog::closeEvent(QCloseEvent * e) delete this; } -void KviThemeManagementDialog::tipRequest(KviDynamicToolTip *pTip,const QPoint &pnt) +void KviThemeManagementDialog::tipRequest(QListWidgetItem *it,const QPoint &pnt) { - KviThemeListWidgetItem * it = (KviThemeListWidgetItem *)(m_pListWidget->itemAt(pnt)); + // FIXME + /* + //KviThemeListWidgetItem * it = (KviThemeListWidgetItem *)(m_pListWidget->itemAt(pnt)); - if(!it)return; + //if(!it)return; - KviThemeInfo * pThemeInfo = it->themeInfo(); + KviThemeInfo * pThemeInfo = ((KviThemeListWidgetItem *)it)->themeInfo(); QString szThemeDescription; @@ -423,6 +428,12 @@ void KviThemeManagementDialog::tipRequest(KviDynamicToolTip *pTip,const QPoint & pThemeInfo->mediumScreenshot(), 0 ); - - pTip->tip(m_pListWidget->visualItemRect(it),szThemeDescription); + QLabel *wid=new QLabel(0); + wid->setWindowFlags(Qt::Popup); + wid->setText("Prova del tooltip"); + wid->move(pnt); + wid->show(); +// pTip->tip(m_pListWidget->visualItemRect(it),szThemeDescription); +*/ } + |
