mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
Setting the right parent definitely helps. :-)
svn path=/trunk/playground/utils/dolphin/; revision=607770
This commit is contained in:
parent
c1af91aab1
commit
09c69ff811
|
@ -49,11 +49,11 @@ BookmarksSettingsPage::BookmarksSettingsPage(QWidget*parent) :
|
||||||
m_moveUpButton(0),
|
m_moveUpButton(0),
|
||||||
m_moveDownButton(0)
|
m_moveDownButton(0)
|
||||||
{
|
{
|
||||||
Q3VBoxLayout* topLayout = new Q3VBoxLayout(parent, 2, KDialog::spacingHint());
|
Q3VBoxLayout* topLayout = new Q3VBoxLayout(this, 2, KDialog::spacingHint());
|
||||||
|
|
||||||
const int spacing = KDialog::spacingHint();
|
const int spacing = KDialog::spacingHint();
|
||||||
|
|
||||||
KHBox* hBox = new KHBox(parent);
|
KHBox* hBox = new KHBox(this);
|
||||||
hBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
hBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||||
hBox->setSpacing(spacing);
|
hBox->setSpacing(spacing);
|
||||||
hBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Ignored);
|
hBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Ignored);
|
||||||
|
|
|
@ -48,7 +48,7 @@ GeneralSettingsPage::GeneralSettingsPage(QWidget* parent) :
|
||||||
m_startSplit(0),
|
m_startSplit(0),
|
||||||
m_startEditable(0)
|
m_startEditable(0)
|
||||||
{
|
{
|
||||||
Q3VBoxLayout* topLayout = new Q3VBoxLayout(parent, 2, KDialog::spacingHint());
|
Q3VBoxLayout* topLayout = new Q3VBoxLayout(this, 2, KDialog::spacingHint());
|
||||||
|
|
||||||
const int spacing = KDialog::spacingHint();
|
const int spacing = KDialog::spacingHint();
|
||||||
const int margin = KDialog::marginHint();
|
const int margin = KDialog::marginHint();
|
||||||
|
@ -56,7 +56,7 @@ GeneralSettingsPage::GeneralSettingsPage(QWidget* parent) :
|
||||||
|
|
||||||
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
|
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
|
||||||
|
|
||||||
KVBox* vBox = new KVBox(parent);
|
KVBox* vBox = new KVBox(this);
|
||||||
vBox->setSizePolicy(sizePolicy);
|
vBox->setSizePolicy(sizePolicy);
|
||||||
vBox->setSpacing(spacing);
|
vBox->setSpacing(spacing);
|
||||||
vBox->setMargin(margin);
|
vBox->setMargin(margin);
|
||||||
|
|
|
@ -36,9 +36,9 @@ ViewSettingsPage::ViewSettingsPage(QWidget *parent) :
|
||||||
m_detailsPage(0),
|
m_detailsPage(0),
|
||||||
m_previewsPage(0)
|
m_previewsPage(0)
|
||||||
{
|
{
|
||||||
Q3VBoxLayout* topLayout = new Q3VBoxLayout(parent, 0, KDialog::spacingHint());
|
Q3VBoxLayout* topLayout = new Q3VBoxLayout(this, 0, KDialog::spacingHint());
|
||||||
|
|
||||||
QTabWidget* tabWidget = new QTabWidget(parent);
|
QTabWidget* tabWidget = new QTabWidget(this);
|
||||||
|
|
||||||
// initialize 'Icons' tab
|
// initialize 'Icons' tab
|
||||||
m_iconsPage = new IconsViewSettingsPage(/*DolphinIconsView::Icons,*/ tabWidget);
|
m_iconsPage = new IconsViewSettingsPage(/*DolphinIconsView::Icons,*/ tabWidget);
|
||||||
|
|
Loading…
Reference in a new issue