forked from qt-creator/qt-creator
Core: Retain inherited size policy for Core::Switch
No need to set a custom one in the constructor just to overrule it on the instance. Change-Id: I0dac72a56fa28b1a83e5803d5440f40ed84cb433 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -502,7 +502,6 @@ Switch::Switch(const QString &text, QWidget *parent)
|
|||||||
setText(text);
|
setText(text);
|
||||||
setCheckable(true);
|
setCheckable(true);
|
||||||
setAttribute(Qt::WA_Hover);
|
setAttribute(Qt::WA_Hover);
|
||||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
|
|
||||||
setLayoutDirection(Qt::RightToLeft); // Switch right, label left
|
setLayoutDirection(Qt::RightToLeft); // Switch right, label left
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -549,7 +549,6 @@ ExtensionsBrowser::ExtensionsBrowser(ExtensionsModel *model, QWidget *parent)
|
|||||||
applyTf(titleLabel, titleTF);
|
applyTf(titleLabel, titleTF);
|
||||||
|
|
||||||
auto externalRepoSwitch = new Switch("Use external repository");
|
auto externalRepoSwitch = new Switch("Use external repository");
|
||||||
externalRepoSwitch->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum);
|
|
||||||
externalRepoSwitch->setToolTip("<html>" + externalRepoWarningNote());
|
externalRepoSwitch->setToolTip("<html>" + externalRepoWarningNote());
|
||||||
|
|
||||||
d->searchBox = new SearchBox;
|
d->searchBox = new SearchBox;
|
||||||
|
Reference in New Issue
Block a user