summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye
Unidiff
Diffstat (limited to 'noncore/graphics/opie-eye') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/iconview.cpp5
-rw-r--r--noncore/graphics/opie-eye/gui/mainwindow.cpp8
-rw-r--r--noncore/graphics/opie-eye/phunk_view.pro2
-rw-r--r--noncore/graphics/opie-eye/slave/slavereciever.cpp11
-rw-r--r--noncore/graphics/opie-eye/slave/slavereciever.h2
5 files changed, 20 insertions, 8 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp
index 38a621e..729b64f 100644
--- a/noncore/graphics/opie-eye/gui/iconview.cpp
+++ b/noncore/graphics/opie-eye/gui/iconview.cpp
@@ -95,3 +95,3 @@ PIconView::PIconView( QWidget* wid, Config* cfg )
95 { 95 {
96// QCopEnvelope( "QPE/Application/opie-eye_slave", "foo()" ); 96 QCopEnvelope( "QPE/Application/opie-eye_slave", "refUp()" );
97 } 97 }
@@ -124,2 +124,5 @@ PIconView::PIconView( QWidget* wid, Config* cfg )
124PIconView::~PIconView() { 124PIconView::~PIconView() {
125 {
126 QCopEnvelope( "QPE/Application/opie-eye_slave", "refDown()" );
127 }
125} 128}
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp
index 0a2fcab..ea765d1 100644
--- a/noncore/graphics/opie-eye/gui/mainwindow.cpp
+++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp
@@ -15,4 +15,4 @@
15 15
16#include <opie/oapplicationfactory.h> 16#include <opie2/oapplicationfactory.h>
17#include <opie/otabwidget.h> 17#include <opie2/otabwidget.h>
18 18
@@ -26,3 +26,3 @@
26 26
27OPIE_EXPORT_APP( OApplicationFactory<PMainWindow> ) 27OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<PMainWindow> )
28 28
@@ -86,3 +86,3 @@ void PMainWindow::slotConfig() {
86 QHBoxLayout *lay = new QHBoxLayout(&dlg); 86 QHBoxLayout *lay = new QHBoxLayout(&dlg);
87 OTabWidget *wid = new OTabWidget(&dlg ); 87 Opie::Ui::OTabWidget *wid = new Opie::Ui::OTabWidget(&dlg );
88 lay->addWidget( wid ); 88 lay->addWidget( wid );
diff --git a/noncore/graphics/opie-eye/phunk_view.pro b/noncore/graphics/opie-eye/phunk_view.pro
index 21178ee..0bb5679 100644
--- a/noncore/graphics/opie-eye/phunk_view.pro
+++ b/noncore/graphics/opie-eye/phunk_view.pro
@@ -31,3 +31,3 @@ DEPENDPATH += $(OPIEDIR)/include
31 31
32LIBS += -lqpe -lopie 32LIBS += -lqpe -lopieui2
33 33
diff --git a/noncore/graphics/opie-eye/slave/slavereciever.cpp b/noncore/graphics/opie-eye/slave/slavereciever.cpp
index c8e33d4..bbbbb30 100644
--- a/noncore/graphics/opie-eye/slave/slavereciever.cpp
+++ b/noncore/graphics/opie-eye/slave/slavereciever.cpp
@@ -59,3 +59,3 @@ SlaveObjects* slaveObjects() {
59SlaveReciever::SlaveReciever( QObject* par) 59SlaveReciever::SlaveReciever( QObject* par)
60 : QObject( par ) 60 : QObject( par ), m_refs( 0 )
61{ 61{
@@ -122,2 +122,6 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
122 } 122 }
123 }else if ( string == "refUp()" ) {
124 m_refs++;
125 }else if ( string == "refDown()" ) {
126 m_refs--;
123 } 127 }
@@ -130,3 +134,6 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
130 134
131 QPEApplication::setKeepRunning(); 135 if ( m_refs )
136 QPEApplication::setKeepRunning();
137 else
138 qApp->quit();
132 139
diff --git a/noncore/graphics/opie-eye/slave/slavereciever.h b/noncore/graphics/opie-eye/slave/slavereciever.h
index 214bfc6..b5aaccf 100644
--- a/noncore/graphics/opie-eye/slave/slavereciever.h
+++ b/noncore/graphics/opie-eye/slave/slavereciever.h
@@ -54,2 +54,4 @@ private:
54 PixmapList m_inPix, m_outPix; 54 PixmapList m_inPix, m_outPix;
55private:
56 int m_refs;
55}; 57};