Allow border on docks- use QFrame (#1054)

This commit is contained in:
Jeremy Bullock 2017-03-14 22:32:57 -06:00 committed by shun-iwasawa
parent 915f195e70
commit 3a998ec844
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ private:
\sa DockLayout and DockPlaceholder classes.
*/
class DVAPI DockWidget : public QWidget {
class DVAPI DockWidget : public QFrame {
friend class DockLayout; // DockLayout is granted access to placeholders'
// privates
friend class DockPlaceholder; // As above.

View file

@ -105,7 +105,7 @@ inline void DockLayout::update() {
//! (i.e. not docked
//! into the layout).
DockWidget::DockWidget(QWidget *parent, Qt::WindowFlags flags)
: QWidget(parent, flags)
: QFrame(parent, flags)
, m_dragging(false)
, m_resizing(false)
, m_floating(true)