~ubuntu-branches/ubuntu/jaunty/avidemux/jaunty

« back to all changes in this revision

Viewing changes to avidemux/ADM_userInterfaces/ADM_QT4/ADM_gui/T_tray.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-02-17 23:41:46 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217234146-eakx254awuch4wgw
Tags: 1:2.4.4-0.0ubuntu1
* Merge from debian multimedia, Ubuntu remaining changes:
  - debian/control:
    + Build-Depends on newer libx264-dev.
    + Don't Build-Depends on ccache and libamrnb-dev.
    + Build-Depends on libpulse-dev.
    + Fixed small typo in avidemux description.
  - Don't use ccache.
  - Drop patch to fix build with newer x264, it has been merged by upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <QtGui/QDialog>
 
2
#include <QtGui/QSystemTrayIcon>
 
3
 
 
4
extern void UI_deiconify(void);
 
5
 
 
6
class ADM_qtray_signalReceiver : public QObject
 
7
{
 
8
     Q_OBJECT
 
9
 
 
10
public:
 
11
        QDialog *parent;
 
12
 
 
13
public slots:
 
14
        void restore(void)
 
15
        {
 
16
                UI_deiconify();
 
17
                parent->showNormal();
 
18
        };
 
19
 
 
20
        void iconActivated(QSystemTrayIcon::ActivationReason reason)
 
21
        {
 
22
                if (reason == QSystemTrayIcon::DoubleClick)
 
23
                        restore();
 
24
        };
 
25
};