[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/network/ksniffer
From:       Giovanni Venturi <gventuri73 () tiscali ! it>
Date:       2008-12-02 15:30:04
Message-ID: 1228231804.103794.27773.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 891672 by gianni:

Use the standard KDE popup position for the popup windows as requested by a user

 M  +1 -0      Changelog  
 M  +2 -2      ksnifferpassivepopup.cpp  
 M  +1 -1      ksnifferpassivepopup.h  


--- trunk/playground/network/ksniffer/Changelog #891671:891672
@@ -7,6 +7,7 @@
   - Added more output in the error dialog in case of libpcap gets an error
   - Avoided the overlap of message popup
   - Removed definition of the help menu and use the default KDE one: thanks to \
Albert Astals Cid +  - Use the standard KDE popup position for the popup windows as \
requested by a user  
 KSniffer 0.3.2 [21 February 2008]
   - More information for ARP protocol
--- trunk/playground/network/ksniffer/ksnifferpassivepopup.cpp #891671:891672
@@ -68,7 +68,7 @@
 }
 
 
-void KSnifferPassivePopup::showMessage()
+void KSnifferPassivePopup::showMessage(bool standard)
 {
   // extract the message
   PassiveMessage *mex = m_queue->head();
@@ -81,7 +81,7 @@
   popup->setView( mex->caption(), mex->text(), icon);
 
   popup->show();
-  if (mex->parent()->isShown() && !mex->parent()->isMinimized())
+  if (mex->parent()->isShown() && !mex->parent()->isMinimized() && (!standard))
   {
     popup->move( QPoint(mex->parent()->x() + (mex->parent()->width() - \
                popup->width()) / 2,
       mex->parent()->y() + (mex->parent()->height() - popup->height()) / 2) );
--- trunk/playground/network/ksniffer/ksnifferpassivepopup.h #891671:891672
@@ -60,7 +60,7 @@
     void message(const QString& caption, const QString& text, QWidget *parent, const \
char *name=0, int seconds = 3);  
   private:
-    void showMessage();
+    void showMessage(bool standard = true);
 
   private:
     KPassivePopup *m_passivePopup;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic