« Return to Thread: Review Request: Redesign Window Switcher layout design
| This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104948/ |
On May 14th, 2012, 9:48 p.m., Thomas Lübking wrote:
kwin/kcmkwin/kwintabbox/layoutconfig.cpp (Diff revision 1) LayoutConfig::LayoutConfig(QWidget* parent) LayoutConfig::LayoutConfig(const QString& layoutName, QWidget* parent)52 setMinimumSize(QSize(500, 500));55 QWidget::setLayout(vboxLayout);passing a widget parameter sets the layout - the overloaded ::setLayout() does not break this, does it?On May 15th, 2012, 4:37 a.m., Martin Gräßlin wrote:
I changed it to QWidget::setLayout due to compile error.On May 15th, 2012, 6:49 a.m., Thomas Lübking wrote:
i meant that calling ::setLayout should not be necessary in the first place, yesno?On May 15th, 2012, 3:47 p.m., Martin Gräßlin wrote:
it is, with setLayout(vboxLayout); we get: /home/martin/kdesrc/kde/kde-workspace/kwin/kcmkwin/kwintabbox/layoutconfig.cpp: In constructor ‘KWin::TabBox::LayoutConfig::LayoutConfig(const QString&, QWidget*)’: /home/martin/kdesrc/kde/kde-workspace/kwin/kcmkwin/kwintabbox/layoutconfig.cpp:55:25: error: no matching function for call to ‘KWin::TabBox::LayoutConfig::setLayout(QVBoxLayout*&)’ /home/martin/kdesrc/kde/kde-workspace/kwin/kcmkwin/kwintabbox/layoutconfig.cpp:55:25: note: candidate is: /home/martin/kdesrc/kde/kde-workspace/kwin/kcmkwin/kwintabbox/layoutconfig.h:43:10: note: void KWin::TabBox::LayoutConfig::setLayout(const QString&) /home/martin/kdesrc/kde/kde-workspace/kwin/kcmkwin/kwintabbox/layoutconfig.h:43:10: note: no known conversion for argument 1 from ‘QVBoxLayout*’ to ‘const QString&’
=) i didn't mean the explicit base call, but the entire call - creatin a layout on a widget should set that layout on the widget anyway, so actually the line should be superfluous and that confused me.
- Thomas
On May 14th, 2012, 6:49 p.m., Martin Gräßlin wrote:
|
Review request for kwin.
By Martin Gräßlin.
Updated May 14, 2012, 6:49 p.m. Description
Testing
Bugs:
299278
Diffs
Screenshots |
« Return to Thread: Review Request: Redesign Window Switcher layout design
| Free embeddable forum powered by Nabble | Forum Help |