[kde-doc-english] [trojita] src/Gui: GUI: implement LoadablePartWidget::reloadContents
Jan Kundrát
jkt at flaska.net
Thu Jun 20 12:28:51 UTC 2013
Git commit bc4e6f364240aa76251c684b95385955def7a83f by Jan Kundrát.
Committed on 19/06/2013 at 15:18.
Pushed by jkt into branch 'master'.
GUI: implement LoadablePartWidget::reloadContents
BUG: 321322
M +6 -0 src/Gui/LoadablePartWidget.cpp
M +1 -1 src/Gui/LoadablePartWidget.h
http://commits.kde.org/trojita/bc4e6f364240aa76251c684b95385955def7a83f
diff --git a/src/Gui/LoadablePartWidget.cpp b/src/Gui/LoadablePartWidget.cpp
index 18a55b1..64908e3 100644
--- a/src/Gui/LoadablePartWidget.cpp
+++ b/src/Gui/LoadablePartWidget.cpp
@@ -75,4 +75,10 @@ void LoadablePartWidget::showEvent(QShowEvent *event)
}
}
+void LoadablePartWidget::reloadContents()
+{
+ if (AbstractPartWidget *w = dynamic_cast<AbstractPartWidget*>(realPart))
+ w->reloadContents();
+}
+
}
diff --git a/src/Gui/LoadablePartWidget.h b/src/Gui/LoadablePartWidget.h
index 681df24..d69a054 100644
--- a/src/Gui/LoadablePartWidget.h
+++ b/src/Gui/LoadablePartWidget.h
@@ -54,7 +54,7 @@ public:
LoadablePartWidget(QWidget *parent, Imap::Network::MsgPartNetAccessManager *manager, const QModelIndex &part,
MessageView *messageView, const LoadingTriggerMode mode);
QString quoteMe() const;
- virtual void reloadContents() {}
+ virtual void reloadContents();
protected:
virtual void showEvent(QShowEvent *event);
private slots:
More information about the kde-doc-english
mailing list