diff options
| author | 2007-04-21 12:48:28 +0000 | |
|---|---|---|
| committer | 2007-04-21 12:48:28 +0000 | |
| commit | 40d6f4bd826a1aa10ded1168b2c6f3163b2a13ba (patch) | |
| tree | ccfdcec5cfa4ba9c44a2da9fda9d6be4e0789fa1 /src/modules | |
| parent | Compilation fixes (diff) | |
| download | KVIrc-40d6f4bd826a1aa10ded1168b2c6f3163b2a13ba.tar.gz KVIrc-40d6f4bd826a1aa10ded1168b2c6f3163b2a13ba.tar.bz2 KVIrc-40d6f4bd826a1aa10ded1168b2c6f3163b2a13ba.zip | |
evil crash fixes
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@521 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/dockwidget/libkvidockwidget_qt4.cpp | 37 | ||||
| -rw-r--r-- | src/modules/notifier/notifier_QT4_vc05.vcproj | 8 | ||||
| -rw-r--r-- | src/modules/notifier/notifierwindow.cpp | 4 |
3 files changed, 38 insertions, 11 deletions
diff --git a/src/modules/dockwidget/libkvidockwidget_qt4.cpp b/src/modules/dockwidget/libkvidockwidget_qt4.cpp index b16375a77..26d866fba 100644 --- a/src/modules/dockwidget/libkvidockwidget_qt4.cpp +++ b/src/modules/dockwidget/libkvidockwidget_qt4.cpp @@ -132,7 +132,7 @@ void KviDockWidget::die() void KviDockWidget::flashingTimerShot() { m_bFlashed=!m_bFlashed; - updateIcon(); + refresh(); } #define NIDLEMSGS 18 @@ -326,10 +326,10 @@ void KviDockWidget::refresh() { grabActivityInfo(); - if( (m_iChannels == 2) || (m_iQueries == 2) ) { - if(!m_pFlashingTimer->isActive() && KVI_OPTION_BOOL(KviOption_boolEnableTrayIconFlashing) ) m_pFlashingTimer->start(1000); + if(!m_pFlashingTimer->isActive() && KVI_OPTION_BOOL(KviOption_boolEnableTrayIconFlashing) ) + m_pFlashingTimer->start(1000); } else { if(m_pFlashingTimer->isActive()) m_pFlashingTimer->stop(); m_bFlashed=false; @@ -343,12 +343,29 @@ void KviDockWidget::refresh() { thisRestrictionOfQt4IsNotNice.drawPixmap((ICON_SIZE-16)/2,(ICON_SIZE-16)/2,16,16,*(g_pIconManager->getSmallIcon(KVI_SMALLICON_MESSAGE)),0,0,16,16); } else { - thisRestrictionOfQt4IsNotNice.drawPixmap(0,0,ICON_SIZE/2,ICON_SIZE/2,m_iOther ? ((m_iOther == 2) ? *g_pDock3 : *g_pDock2) : *g_pDock1,0,0,ICON_SIZE/2,ICON_SIZE/2); - thisRestrictionOfQt4IsNotNice.drawPixmap(0,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2,m_iConsoles ? ((m_iConsoles == 2) ? *g_pDock3 : *g_pDock2) : *g_pDock1,0,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2); - thisRestrictionOfQt4IsNotNice.drawPixmap(ICON_SIZE/2,0,ICON_SIZE/2,ICON_SIZE/2,m_iQueries ? ((m_iQueries == 2) ? *g_pDock3 : *g_pDock2) : *g_pDock1,ICON_SIZE/2,0,ICON_SIZE/2,ICON_SIZE/2); - thisRestrictionOfQt4IsNotNice.drawPixmap(ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2,m_iChannels ? ((m_iChannels == 2) ? *g_pDock3 : *g_pDock2) : *g_pDock1,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2); + thisRestrictionOfQt4IsNotNice.drawPixmap(0,0,ICON_SIZE/2,ICON_SIZE/2, + m_iOther ? + ((m_iOther == 2) ? *g_pDock3 : *g_pDock2) + : *g_pDock1,0,0,ICON_SIZE/2,ICON_SIZE/2); + + thisRestrictionOfQt4IsNotNice.drawPixmap(0,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2, + m_iConsoles ? + ((m_iConsoles == 2) ? *g_pDock3 : *g_pDock2) + : *g_pDock1,0,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2); + + thisRestrictionOfQt4IsNotNice.drawPixmap(ICON_SIZE/2,0,ICON_SIZE/2,ICON_SIZE/2, + m_iQueries ? + ((m_iQueries == 2) + ? *g_pDock3 : *g_pDock2) + : *g_pDock1,ICON_SIZE/2,0,ICON_SIZE/2,ICON_SIZE/2); + + thisRestrictionOfQt4IsNotNice.drawPixmap(ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2, + m_iChannels ? + ((m_iChannels == 2) ? *g_pDock3 : *g_pDock2) + : *g_pDock1 + ,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2,ICON_SIZE/2); + } - updateIcon(); } @@ -614,7 +631,9 @@ static bool dockwidget_module_init(KviModule * m) g_pApp->findImage(buffer,"kvi_dock_win32-2.png"); #else g_pApp->findImage(buffer,"kvi_dock_part-2.png"); -#endif g_pDock3 = new QPixmap(buffer); +#endif + + g_pDock3 = new QPixmap(buffer); g_pDockWidgetList = new KviPtrList<KviDockWidget>; diff --git a/src/modules/notifier/notifier_QT4_vc05.vcproj b/src/modules/notifier/notifier_QT4_vc05.vcproj index 21430b259..dcb520b27 100644 --- a/src/modules/notifier/notifier_QT4_vc05.vcproj +++ b/src/modules/notifier/notifier_QT4_vc05.vcproj @@ -231,6 +231,10 @@ >
</File>
<File
+ RelativePath=".\notifierwindowprogressbar.cpp"
+ >
+ </File>
+ <File
RelativePath=".\notifierwindowtabs.cpp"
>
</File>
@@ -279,6 +283,10 @@ >
</File>
<File
+ RelativePath=".\notifierwindowprogressbar.h"
+ >
+ </File>
+ <File
RelativePath=".\notifierwindowtabs.h"
>
<FileConfiguration
diff --git a/src/modules/notifier/notifierwindow.cpp b/src/modules/notifier/notifierwindow.cpp index 73b7bd2e9..94ced105e 100644 --- a/src/modules/notifier/notifierwindow.cpp +++ b/src/modules/notifier/notifierwindow.cpp @@ -473,13 +473,13 @@ void KviNotifierWindow::doHide(bool bDoAnimate) if((!bDoAnimate) || (x() != m_pWndBorder->x()) || (y() != m_pWndBorder->y())) { - debug ("just hide quickly with notifier x() %d and notifier y() % - WBorderx() %d and WBordery() %d and bDoanimate %d",x(),y(),m_pWndBorder->x(),m_pWndBorder->y(),bDoAnimate); + //debug ("just hide quickly with notifier x() %d and notifier y() % - WBorderx() %d and WBordery() %d and bDoanimate %d",x(),y(),m_pWndBorder->x(),m_pWndBorder->y(),bDoAnimate); // the user asked to not animate or // the window has been moved and the animation would suck anyway // just hide quickly hideNow(); } else { - debug ("starting hide animation notifier x() %d and notifier y() % - WBorderx() %d and WBordery() %d and bDoanimate %d",x(),y(),m_pWndBorder->x(),m_pWndBorder->y(),bDoAnimate); + //debug ("starting hide animation notifier x() %d and notifier y() % - WBorderx() %d and WBordery() %d and bDoanimate %d",x(),y(),m_pWndBorder->x(),m_pWndBorder->y(),bDoAnimate); m_pShowHideTimer = new QTimer(); connect(m_pShowHideTimer,SIGNAL(timeout()),this,SLOT(heartbeat())); m_dOpacity = 1.0 - OPACITY_STEP; |
