author | alwin <alwin> | 2004-03-02 12:14:15 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-02 12:14:15 (UTC) |
commit | 0d59c780513da78033f4d9040475dee9db0256d4 (patch) (side-by-side diff) | |
tree | 503d320b4aa3daae9982082e7b34e3e2c48bdfb7 /examples/simple-pim | |
parent | a0981652d61776d70f25980f035748b21339e946 (diff) | |
download | opie-0d59c780513da78033f4d9040475dee9db0256d4.zip opie-0d59c780513da78033f4d9040475dee9db0256d4.tar.gz opie-0d59c780513da78033f4d9040475dee9db0256d4.tar.bz2 |
run the optimize_connect script
the whole cvs is tagged with "before_optimize_connect" if there are problems you
can check the diff (but it had compiled and run here)
-rw-r--r-- | examples/simple-pim/simple.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/simple-pim/simple.cpp b/examples/simple-pim/simple.cpp index 3e9fcd3..029e71b 100644 --- a/examples/simple-pim/simple.cpp +++ b/examples/simple-pim/simple.cpp @@ -76,16 +76,16 @@ MainWindow::MainWindow(QWidget *parent, const char* name, WFlags fl ) this, SLOT(slotDate() ) ); /* * connect the show signal of the PIMListView * to a slot to show a dialog */ - connect(m_todoView, SIGNAL(showRecord(const OPimRecord& ) ), - this, SLOT(slotShowRecord(const OPimRecord& ) ) ); - connect(m_dateView, SIGNAL(showRecord(const OPimRecord& ) ), - this, SLOT(slotShowRecord(const OPimRecord& ) ) ); + connect(m_todoView, SIGNAL(showRecord(const OPimRecord&) ), + this, SLOT(slotShowRecord(const OPimRecord&) ) ); + connect(m_dateView, SIGNAL(showRecord(const OPimRecord&) ), + this, SLOT(slotShowRecord(const OPimRecord&) ) ); /* * Now comes the important lines of code for this example * We do not directly call load but delay loading until * all Events are dispatches and handled. * SO we will load once our window is mapped to screen @@ -186,14 +186,14 @@ void MainWindow::slotLoad() { /* * prepare our answer machine the QCopChannel * QPE/Desktop will send "flushDone(QString)" when * the flush is done it emits a signal on receive */ m_desktopChannel = new QCopChannel("QPE/Desktop"); - connect(m_desktopChannel, SIGNAL(received(const QCString&, const QByteArray& ) ), - this, SLOT(slotDesktopReceive(const QCString&, const QByteArray& ) ) ); + connect(m_desktopChannel, SIGNAL(received(const QCString&,const QByteArray&) ), + this, SLOT(slotDesktopReceive(const QCString&,const QByteArray&) ) ); /* the numberof synced channels will be set to zero */ m_synced = 0; /* * We use {} around the QCopEnvelope because it sends its * data on destruction of QCopEnvelope with @@ -304,14 +304,14 @@ void MainWindow::slotDate() { * to select the day */ qWarning("slot Date"); QPopupMenu *menu = new QPopupMenu(); /* A Month to select a date from TRUE for auto close */ DateBookMonth *month = new DateBookMonth(menu, 0, true ); - connect(month, SIGNAL(dateClicked(int, int, int) ), - this, SLOT(slotLoadForDay(int, int, int) ) ); + connect(month, SIGNAL(dateClicked(int,int,int) ), + this, SLOT(slotLoadForDay(int,int,int) ) ); menu->insertItem( month ); menu->exec( QCursor::pos() ); /* |