┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-05-17 14:51:54 +0000
committerPeter Penz <[email protected]>2007-05-17 14:51:54 +0000
commit2ed4d8dcc483ac6067149647eb457d46be7111c5 (patch)
treedc4a1fe49253c7ff6479ad09f1253d447d2fd802 /src/infosidebarpage.h
parentc35843f38c596eda4a9b04ba4c6a3247f3bdebc9 (diff)
information sidebar fixes:
- provide meta information when hovering items - don't increase the sidebar width, if the item name is longer than the available width svn path=/trunk/KDE/kdebase/apps/; revision=665646
Diffstat (limited to 'src/infosidebarpage.h')
-rw-r--r--src/infosidebarpage.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h
index 5aa4f5d07..9fcf449be 100644
--- a/src/infosidebarpage.h
+++ b/src/infosidebarpage.h
@@ -60,24 +60,30 @@ public:
virtual ~InfoSidebarPage();
public slots:
+ /** @see SidebarPage::setUrl() */
virtual void setUrl(const KUrl& url);
+
+ /** @see SidebarPage::setSelection() */
virtual void setSelection(const KFileItemList& selection);
+ /**
+ * Does a delayed request of information for the item of the given URL.
+ * If within this delay InfoSidebarPage::setUrl() or InfoSidebarPage::setSelection()
+ * are invoked, then the request will be skipped. Requesting a delayed item information
+ * makes sense when hovering items.
+ */
+ void requestDelayedItemInfo(const KUrl& url);
+
protected:
/** @see QWidget::showEvent() */
virtual void showEvent(QShowEvent* event);
-private slots:
- /**
- * Does a delayed request of information for the item of the given Url and
- * provides default actions.
- *
- * @see InfoSidebarPage::showItemInfo()
- */
- void requestDelayedItemInfo(const KUrl& url);
+ /** @see QWidget::resizeEvent() */
+ virtual void resizeEvent(QResizeEvent* event);
+private slots:
/**
- * Shows the information for the item of the Url which has been provided by
+ * Shows the information for the item of the URL which has been provided by
* InfoSidebarPage::requestItemInfo() and provides default actions.
*/
void showItemInfo();
@@ -102,9 +108,9 @@ private slots:
private:
/**
- * Checks whether the an Url is repesented by a bookmark. If yes,
+ * Checks whether the an URL is repesented by a bookmark. If yes,
* then the bookmark icon and name are shown instead of a preview.
- * @return True, if the Url represents exactly a bookmark.
+ * @return True, if the URL represents exactly a bookmark.
* @param url The url to check.
*/
bool applyBookmark(const KUrl& url);