[kde-doc-english] [trojita] src/Gui: GUI: PartWidgetFactory: deprecate the optionless helper

Jan Kundrát jkt at flaska.net
Mon Aug 19 14:54:01 UTC 2013


Git commit e313b11159708f04ea146ac29e75b70d57816214 by Jan Kundrát.
Committed on 19/08/2013 at 11:49.
Pushed by jkt into branch 'master'.

GUI: PartWidgetFactory: deprecate the optionless helper

M  +1    -1    src/Gui/MessageView.cpp
M  +0    -5    src/Gui/PartWidgetFactory.cpp
M  +0    -1    src/Gui/PartWidgetFactory.h

http://commits.kde.org/trojita/e313b11159708f04ea146ac29e75b70d57816214

diff --git a/src/Gui/MessageView.cpp b/src/Gui/MessageView.cpp
index fbe4d63..b729a7e 100644
--- a/src/Gui/MessageView.cpp
+++ b/src/Gui/MessageView.cpp
@@ -227,7 +227,7 @@ void MessageView::setMessage(const QModelIndex &index)
         m_loadingItemCount = 0;
         m_progress->hide();
 
-        viewer = factory->create(rootPartIndex);
+        viewer = factory->create(rootPartIndex, 0);
         viewer->setParent(this);
         layout->addWidget(viewer);
         viewer->show();
diff --git a/src/Gui/PartWidgetFactory.cpp b/src/Gui/PartWidgetFactory.cpp
index 370694e..a3a1b23 100644
--- a/src/Gui/PartWidgetFactory.cpp
+++ b/src/Gui/PartWidgetFactory.cpp
@@ -52,11 +52,6 @@ PartWidgetFactory::PartWidgetFactory(Imap::Network::MsgPartNetAccessManager *man
 {
 }
 
-QWidget *PartWidgetFactory::create(const QModelIndex &partIndex)
-{
-    return create(partIndex, 0);
-}
-
 QWidget *PartWidgetFactory::create(const QModelIndex &partIndex, int recursionDepth, const PartLoadingOptions loadingMode)
 {
     using namespace Imap::Mailbox;
diff --git a/src/Gui/PartWidgetFactory.h b/src/Gui/PartWidgetFactory.h
index abdaf2b..261a98d 100644
--- a/src/Gui/PartWidgetFactory.h
+++ b/src/Gui/PartWidgetFactory.h
@@ -48,7 +48,6 @@ public:
     typedef QFlags<PartLoadingFlag> PartLoadingOptions;
 
     PartWidgetFactory(Imap::Network::MsgPartNetAccessManager *manager, MessageView *messageView);
-    QWidget *create(const QModelIndex &partIndex);
     QWidget *create(const QModelIndex &partIndex, int recursionDepth, const PartLoadingOptions loadingMode = PartLoadingOptions());
 
     MessageView *messageView() const;



More information about the kde-doc-english mailing list