[kde-doc-english] [trojita] src/Gui: GUI: remove decorators around message/822 widgets

Jan Kundrát jkt at flaska.net
Fri Aug 9 16:30:13 UTC 2013


Git commit d1f9c82ca7b4a84e993673232c15cc9ee13a5cf2 by Jan Kundrát.
Committed on 08/08/2013 at 12:18.
Pushed by jkt into branch 'master'.

GUI: remove decorators around message/822 widgets

Now that they are wrapped in the generic AttachmentView, it makes little sense
to show more visual headers.

M  +1    -2    src/Gui/PartWidget.cpp
M  +1    -1    src/Gui/PartWidget.h

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

diff --git a/src/Gui/PartWidget.cpp b/src/Gui/PartWidget.cpp
index 41f8185..fc71906 100644
--- a/src/Gui/PartWidget.cpp
+++ b/src/Gui/PartWidget.cpp
@@ -171,9 +171,8 @@ QString GenericMultipartWidget::quoteMe() const
 Message822Widget::Message822Widget(QWidget *parent,
                                    PartWidgetFactory *factory, const QModelIndex &partIndex,
                                    int recursionDepth):
-    QGroupBox(tr("Attached Message"), parent)
+    QWidget(parent)
 {
-    setFlat(true);
     QVBoxLayout *layout = new QVBoxLayout(this);
     layout->setSpacing(0);
     EnvelopeView *envelope = new EnvelopeView(0, factory->messageView());
diff --git a/src/Gui/PartWidget.h b/src/Gui/PartWidget.h
index 497b782..e8fda9d 100644
--- a/src/Gui/PartWidget.h
+++ b/src/Gui/PartWidget.h
@@ -68,7 +68,7 @@ public:
 };
 
 /** @short Message quoting support for generic multipart/ * */
-class Message822Widget: public QGroupBox, public AbstractPartWidget
+class Message822Widget: public QWidget, public AbstractPartWidget
 {
     Q_OBJECT
 public:



More information about the kde-doc-english mailing list