[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/dolphin/src
From: Peter Penz <peter.penz () gmx ! at>
Date: 2007-02-08 20:46:51
Message-ID: 1170967611.022952.30471.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 631710 by ppenz:
just a coding guideline style fix: assure that a consistent coding style is used within Dolphin
M +11 -13 dolphinapplication.cpp
M +8 -11 dolphinapplication.h
--- trunk/playground/utils/dolphin/src/dolphinapplication.cpp #631709:631710
@@ -25,13 +25,12 @@
{
}
-/*
- * cleanup what ever is left from the MainWindows
- */
DolphinApplication::~DolphinApplication()
{
- while( m_mainWindows.count() != 0 )
+ // cleanup what ever is left from the MainWindows
+ while (m_mainWindows.count() != 0) {
delete m_mainWindows.takeFirst();
+ }
}
DolphinApplication* DolphinApplication::app()
@@ -41,24 +40,23 @@
DolphinMainWindow* DolphinApplication::createMainWindow()
{
- DolphinMainWindow* mainwindow = new DolphinMainWindow;
- mainwindow->init();
-
- m_mainWindows.append( mainwindow );
- return mainwindow;
+ DolphinMainWindow* mainWindow = new DolphinMainWindow();
+ mainWindow->init();
+
+ m_mainWindows.append(mainWindow);
+ return mainWindow;
}
-void DolphinApplication::removeMainWindow( DolphinMainWindow *mainwindow )
+void DolphinApplication::removeMainWindow(DolphinMainWindow* mainWindow)
{
- m_mainWindows.removeAll( mainwindow );
+ m_mainWindows.removeAll(mainWindow);
}
void DolphinApplication::refreshMainWindows()
{
- for( int i = 0; i < m_mainWindows.count(); ++i ) {
+ for (int i = 0; i < m_mainWindows.count(); ++i) {
m_mainWindows[i]->refreshViews();
}
}
#include "dolphinapplication.moc"
-
--- trunk/playground/utils/dolphin/src/dolphinapplication.h #631709:631710
@@ -27,19 +27,19 @@
class DolphinMainWindow;
/**
- *
- * DolphinApplication will hold application wide data which
- * can be accessed.
+ * @brief Holds the application data which can be accessed.
* At first this will hold a list of DolphinMainWindows which
- * we will delete on application exit.
+ * we will delete on application exit.
*/
-class DolphinApplication : public KApplication {
+class DolphinApplication : public KApplication
+{
Q_OBJECT
friend class DolphinMainWindow;
+
public:
DolphinApplication();
- ~DolphinApplication();
+ virtual ~DolphinApplication();
static DolphinApplication* app();
@@ -51,14 +51,11 @@
void refreshMainWindows();
protected:
- /**
- * called by the MainWindow to deregister
- */
- void removeMainWindow( DolphinMainWindow* );
+ /** Called by the DolphinMainWindow to deregister. */
+ void removeMainWindow(DolphinMainWindow* mainWindow);
private:
QList<DolphinMainWindow*> m_mainWindows;
};
-
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic