From f31a541925033c2ef5e27b85c099d47791b50121 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 29 Nov 2006 00:02:19 +0000 Subject: Make it (almost) possible to have more than one Dolphin KMainWindow Create a DolphinApplication, holding DolphinMainWindows and update the code to use the DolphinView to get the MainWindow, or get a ptr to the MainWindow directly. Or if all windows are effected go through the DolphinApplication to update every mainwindow. The UndowManager and ProgressIndicator have a rather strange relationship and will need some more attention but as UndoManager will be killed anyway I have skipped this. More cleanup, debugging and thinking is needed. svn path=/trunk/playground/utils/dolphin/; revision=608945 --- src/urlnavigatorbutton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/urlnavigatorbutton.cpp') diff --git a/src/urlnavigatorbutton.cpp b/src/urlnavigatorbutton.cpp index f9c5b407b..5e800c1a2 100644 --- a/src/urlnavigatorbutton.cpp +++ b/src/urlnavigatorbutton.cpp @@ -40,7 +40,7 @@ #include "urlnavigator.h" #include "dolphinview.h" -#include "dolphin.h" +#include "dolphinmainwindow.h" UrlNavigatorButton::UrlNavigatorButton(int index, UrlNavigator* parent) : UrlButton(parent), @@ -117,9 +117,9 @@ void UrlNavigatorButton::paintEvent(QPaintEvent* event) // dimm the colors if the parent view does not have the focus const DolphinView* parentView = urlNavigator()->dolphinView(); - const Dolphin& dolphin = Dolphin::mainWin(); + const DolphinMainWindow* dolphin = parentView->mainWindow(); - const bool isActive = (dolphin.activeView() == parentView); + const bool isActive = (dolphin->activeView() == parentView); if (!isActive) { QColor dimmColor(colorGroup().background()); foregroundColor = mixColors(foregroundColor, dimmColor); -- cgit v1.3