Hi!

since I don't want to use the FlashTaskbar feature, I made a patch to make
this feature configurable.

Please apply in mainstream.

Thanks
Philipp


-- 
A byte walks into a bar and orders a pint. Bartender asks him "What's wrong?"
Byte says "Parity error." Bartender nods and says "Yeah, I thought you looked
a bit off."
Index: src/mainwin.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/mainwin.cpp,v
retrieving revision 1.363
diff -u -1 -b -p -r1.363 mainwin.cpp
--- src/mainwin.cpp     20 May 2005 15:50:27 -0000      1.363
+++ src/mainwin.cpp     2 Jun 2005 15:53:45 -0000
@@ -445,2 +445,3 @@ CMainWindow::CMainWindow(CICQDaemon *the
   licqConf.ReadBool("ChatAppendLinebreak", m_bAppendLineBreak, true);
+  licqConf.ReadBool("FlashTaskbar", m_bFlashTaskbar, true);
   
@@ -3550,2 +3551,3 @@ void CMainWindow::saveOptions()
   licqConf.WriteBool("EnableMainwinMouseMovement", 
m_bEnableMainwinMouseMovement);
+  licqConf.WriteBool("FlashTaskbar", m_bFlashTaskbar);
   
Index: src/mainwin.h
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/mainwin.h,v
retrieving revision 1.143
diff -u -1 -b -p -r1.143 mainwin.h
--- src/mainwin.h       20 May 2005 04:40:04 -0000      1.143
+++ src/mainwin.h       2 Jun 2005 15:53:45 -0000
@@ -153,3 +153,4 @@ public:
        m_bSortColumnAscending,
-       m_bAppendLineBreak;
+       m_bAppendLineBreak,
+       m_bFlashTaskbar;
 
Index: src/optionsdlg.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/optionsdlg.cpp,v
retrieving revision 1.146
diff -u -1 -b -p -r1.146 optionsdlg.cpp
--- src/optionsdlg.cpp  31 Mar 2005 14:57:57 -0000      1.146
+++ src/optionsdlg.cpp  2 Jun 2005 15:53:45 -0000
@@ -239,2 +239,3 @@ void OptionsDlg::SetupOptions()
   chkAutoPosReplyWin->setChecked(mainwin->m_bAutoPosReplyWin);
+  chkFlashTaskbar->setChecked(mainwin->m_bFlashTaskbar);
   chkAutoSendThroughServer->setChecked(mainwin->m_bAutoSendThroughServer);
@@ -531,2 +532,3 @@ void OptionsDlg::ApplyOptions()
   mainwin->m_bAutoPosReplyWin = chkAutoPosReplyWin->isChecked();
+  mainwin->m_bFlashTaskbar = chkFlashTaskbar->isChecked();
   mainwin->m_bAutoSendThroughServer = chkAutoSendThroughServer->isChecked();
@@ -805,2 +807,4 @@ QWidget* OptionsDlg::new_appearance_opti
    "the message view window"));
+  chkFlashTaskbar = new QCheckBox(tr("Flash Taskbar on Incoming Msg"), 
boxMainWin);
+  QWhatsThis::add(chkFlashTaskbar, tr("Flash the Taskbar on incoming 
messages"));
   chkAutoSendThroughServer = new QCheckBox(tr("Auto send through server"), 
boxMainWin);
Index: src/optionsdlg.h
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/optionsdlg.h,v
retrieving revision 1.70
diff -u -1 -b -p -r1.70 optionsdlg.h
--- src/optionsdlg.h    31 Mar 2005 14:57:57 -0000      1.70
+++ src/optionsdlg.h    2 Jun 2005 15:53:45 -0000
@@ -93,3 +93,3 @@ protected:
              *chkSysBack, *chkSendFromClipboard, *chkMsgChatView, 
*chkAutoPosReplyWin,
-            *chkAutoSendThroughServer, *chkTabbedChatting,
+            *chkFlashTaskbar, *chkAutoSendThroughServer, *chkTabbedChatting,
              *chkEnableMainwinMouseMovement, *chkShowHistory;
Index: src/usereventdlg.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/usereventdlg.cpp,v
retrieving revision 1.185
diff -u -1 -b -p -r1.185 usereventdlg.cpp
--- src/usereventdlg.cpp        17 May 2005 23:05:12 -0000      1.185
+++ src/usereventdlg.cpp        2 Jun 2005 15:53:46 -0000
@@ -351,2 +351,3 @@ void UserEventTabDlg::updateTabLabel(ICQ
           setIcon(CMainWindow::iconForEvent(ICQ_CMDxSUB_MSG));
+       if (mainwin->m_bFlashTaskbar)
         flashTaskbar(true);

Attachment: signature.asc
Description: Digital signature

Reply via email to