Git commit 7beb102d1e067ddd1283db6738811e0f55ab9200 by Jan Kundr?t. Committed on 08/08/2013 at 12:16. Pushed by jkt into branch 'master'.
GUI: draw a border around attachments This comes in handy when the attachments are deeply nested; it makes it possible to orient oneself in them again. M +2 -1 src/Gui/AttachmentView.cpp M +2 -2 src/Gui/AttachmentView.h http://commits.kde.org/trojita/7beb102d1e067ddd1283db6738811e0f55ab9200 diff --git a/src/Gui/AttachmentView.cpp b/src/Gui/AttachmentView.cpp index 7bd8006..887d4d8 100644 --- a/src/Gui/AttachmentView.cpp +++ b/src/Gui/AttachmentView.cpp @@ -51,7 +51,7 @@ namespace Gui AttachmentView::AttachmentView(QWidget *parent, Imap::Network::MsgPartNetAccessManager *manager, const QModelIndex &partIndex, QWidget *contentWidget): - QWidget(parent), m_partIndex(partIndex), m_downloadButton(0), m_downloadAttachment(0), + QFrame(parent), m_partIndex(partIndex), m_downloadButton(0), m_downloadAttachment(0), m_openAttachment(0), m_showHideAttachment(0), m_netAccess(manager), m_openingManager(0), m_tmpFile(0), m_contentWidget(contentWidget) { @@ -127,6 +127,7 @@ AttachmentView::AttachmentView(QWidget *parent, Imap::Network::MsgPartNetAccessM layout->addWidget(m_downloadButton); setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + setFrameStyle(QFrame::StyledPanel | QFrame::Raised); } void AttachmentView::slotDownloadAttachment() diff --git a/src/Gui/AttachmentView.h b/src/Gui/AttachmentView.h index 8c0dbe9..cb03808 100644 --- a/src/Gui/AttachmentView.h +++ b/src/Gui/AttachmentView.h @@ -22,8 +22,8 @@ #ifndef ATTACHMENTVIEW_H #define ATTACHMENTVIEW_H +#include <QFrame> #include <QModelIndex> -#include <QWidget> #include "Gui/AbstractPartWidget.h" class QNetworkReply; @@ -50,7 +50,7 @@ namespace Gui type of the body part and the download button. It also includes code for handling the actual download. */ -class AttachmentView : public QWidget, public AbstractPartWidget +class AttachmentView : public QFrame, public AbstractPartWidget { Q_OBJECT public:
