summaryrefslogtreecommitdiff
path: root/src/browserapplication.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-11-29 12:15:17 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-11-29 12:15:17 +0100
commit129932ca513ed7ef865669fa81020043bcfa7ba0 (patch)
tree03fba7638c0323672e7958245e9afb0663ca2c1a /src/browserapplication.cpp
parentVarious adjustments. Nothing really important.Various adjustments. Nothing re... (diff)
downloadrekonq-129932ca513ed7ef865669fa81020043bcfa7ba0.tar.xz
Fixing ToolBar, some icons and code..
Diffstat (limited to 'src/browserapplication.cpp')
-rw-r--r--src/browserapplication.cpp35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/browserapplication.cpp b/src/browserapplication.cpp
index 7a125bdc..3099dfc2 100644
--- a/src/browserapplication.cpp
+++ b/src/browserapplication.cpp
@@ -60,7 +60,8 @@ BrowserApplication::BrowserApplication(KCmdLineArgs *args, const QString &server
{
QLocalSocket socket;
socket.connectToServer(serverName);
- if (socket.waitForConnected(500)) {
+ if (socket.waitForConnected(500))
+ {
QTextStream stream(&socket);
int n = args->count();
if (n > 1)
@@ -96,7 +97,7 @@ BrowserApplication::BrowserApplication(KCmdLineArgs *args, const QString &server
m_lastSession = settings.value(QLatin1String("lastSession")).toByteArray();
settings.endGroup();
- QTimer::singleShot(0, this, SLOT(postLaunch()));
+ QTimer::singleShot(0, this, SLOT( postLaunch() ) );
}
@@ -111,15 +112,15 @@ BrowserApplication::~BrowserApplication()
-#if defined(Q_WS_MAC)
-void BrowserApplication::lastWindowClosed()
-{
- clean();
- BrowserMainWindow *mw = new BrowserMainWindow;
- mw->slotHome();
- m_mainWindows.prepend(mw);
-}
-#endif
+// #if defined(Q_WS_MAC)
+// void BrowserApplication::lastWindowClosed()
+// {
+// clean();
+// BrowserMainWindow *mw = new BrowserMainWindow;
+// mw->slotHome();
+// m_mainWindows.prepend(mw);
+// }
+// #endif
@@ -137,16 +138,18 @@ BrowserApplication *BrowserApplication::instance()
void BrowserApplication::postLaunch()
{
QString directory = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
- if (directory.isEmpty())
+ if ( directory.isEmpty() )
+ {
directory = QDir::homePath() + QLatin1String("/.") + QCoreApplication::applicationName();
+ }
QWebSettings::setIconDatabasePath(directory);
-// setWindowIcon(QIcon(QLatin1String(":browser.svg"))); // FIXME setICON
-
+ setWindowIcon( KIcon("rekonq") );
loadSettings();
// newMainWindow() needs to be called in main() for this to happen
- if (m_mainWindows.count() > 0) {
+ if (m_mainWindows.count() > 0)
+ {
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
int n = args->count();
if (n > 1)
@@ -395,7 +398,7 @@ KIcon BrowserApplication::icon(const QUrl &url) const
if (!icon.isNull())
return icon;
if (m_defaultIcon.isNull())
- m_defaultIcon = KIcon("rekonq");
+ m_defaultIcon = KIcon("kde");
return m_defaultIcon;
}