Commit 0e6908ce authored by Lukáš Tvrdý's avatar Lukáš Tvrdý

Fix the pressure curve in Configure Krita -> Tablet Settings

o fit the curve to the page size, no need to resize the dialog every time now
o move the setting of the maximum size to TabletSettingsTab for better maintainability
parent f2c09bd3
......@@ -316,12 +316,18 @@ void TabletSettingsTab::setDefault()
TabletSettingsTab::TabletSettingsTab(QWidget* parent, const char* name): QWidget(parent)
{
setObjectName(name);
QGridLayout * l = new QGridLayout(this);
l->setSpacing(KDialog::spacingHint());
l->setMargin(0);
m_page = new WdgTabletSettings(this);
l->addWidget(m_page, 0, 0);
KisConfig cfg;
KisCubicCurve curve;
curve.fromString( cfg.pressureTabletCurve() );
m_page->pressureCurve->setMaximumSize(QSize(1000, 1000));
m_page->pressureCurve->setCurve(curve);
}
......@@ -604,7 +610,7 @@ KisDlgPreferences::KisDlgPreferences(QWidget* parent, const char* name)
page->setIcon(KIcon("preferences-system-performance"));
addPage(page);
m_tabletSettings = new TabletSettingsTab(vbox);
m_tabletSettings->m_page->pressureCurve->setMaximumSize(QSize(1000, 1000));
// full-screen mode
vbox = new KVBox();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment