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

List:       kde-commits
Subject:    branches/KDE/3.5/kdewebdev/kommander/widgets
From:       Eric Laffoon <sequitur () kde ! org>
Date:       2009-08-31 23:10:50
Message-ID: 1251760250.269717.23002.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1017933 by sequitur:

add context menu

 M  +7 -0      pixmaplabel.cpp  
 M  +2 -0      pixmaplabel.h  


--- branches/KDE/3.5/kdewebdev/kommander/widgets/pixmaplabel.cpp #1017932:1017933
@@ -94,6 +94,13 @@
   emit widgetOpened();
 }
 
+void PixmapLabel::contextMenuEvent( QContextMenuEvent * e )
+{
+  e->accept();
+  QPoint p = e->globalPos();
+  emit contextMenuRequested(p.x(), p.y());
+}
+
 bool PixmapLabel::isFunctionSupported(int f)
 {
   return f == DCOP::text || f == DCOP::setText || f == DCOP::clear || f == DCOP::geometry;
--- branches/KDE/3.5/kdewebdev/kommander/widgets/pixmaplabel.h #1017932:1017933
@@ -56,8 +56,10 @@
 signals:
   void widgetOpened();
   void widgetTextChanged(const QString&);
+  void contextMenuRequested(int xpos, int ypos);
 protected:
   void showEvent(QShowEvent *e);
+  void contextMenuEvent( QContextMenuEvent * e );
 private:
 };
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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