From a567da792ac6a337e9ffeb9468215ef4f2c326ce Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Wed, 20 Jan 2010 11:26:39 +0000 Subject: Use a stat job to determine the caption on non-file URLs. This way we get the fancy UDS_DISPLAY_NAMEs for URLs like the nepomuksearch ones. BUG: 222095 svn path=/trunk/KDE/kdebase/apps/; revision=1077551 --- src/dolphinmainwindow.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 269c71844..c1411319a 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -49,6 +49,7 @@ class KNewMenu; class KTabBar; class KUrl; class QSplitter; +class KJob; /** * @short Main window for Dolphin. @@ -78,7 +79,7 @@ public: * option is enabled, 2 directories are collected within one tab. */ void openDirectories(const QList& dirs); - + /** * Opens the directory which contains the files \p files * and selects all files (implements the --select option @@ -423,6 +424,12 @@ private slots: */ void handleUrl(const KUrl& url); + /** + * setUrlAsCaption will trigger a stat job which reports its result in + * this slot. + */ + void slotCaptionStatFinished( KJob* job ); + private: DolphinMainWindow(int id); void init(); @@ -523,6 +530,8 @@ private: DolphinViewActionHandler* m_actionHandler; DolphinRemoteEncoding* m_remoteEncoding; QPointer m_settingsDialog; + + KJob* m_captionStatJob; }; inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const -- cgit v1.3