svn path=/trunk/KDE/kdebase/apps/; revision=661864
+void InfoSidebarPage::showEvent(QShowEvent* event)
+{
+ SidebarPage::showEvent(event);
+ showItemInfo();
+}
+
void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url)
{
cancelRequest();
void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url)
{
cancelRequest();
void InfoSidebarPage::showItemInfo()
{
void InfoSidebarPage::showItemInfo()
{
+ if (!isVisible()) {
+ return;
+ }
+
cancelRequest();
const KFileItemList& selectedItems = selection();
cancelRequest();
const KFileItemList& selectedItems = selection();
virtual void setUrl(const KUrl& url);
virtual void setSelection(const KFileItemList& selection);
virtual void setUrl(const KUrl& url);
virtual void setSelection(const KFileItemList& selection);
+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
private slots:
/**
* Does a delayed request of information for the item of the given Url and