Fixed issue #303. Valentina stops accepting input on defocus - Gentoo

Linux/KDE/KWin.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-05-22 08:21:38 +03:00
parent cda5b76a7a
commit bf60cfec3b
32 changed files with 318 additions and 20 deletions

View File

@ -93,7 +93,6 @@ ConfigDialog::ConfigDialog(QWidget *parent) :
setWindowTitle(tr("Config Dialog")); setWindowTitle(tr("Config Dialog"));
this->setFixedSize(QSize(750, 550)); this->setFixedSize(QSize(750, 550));
this->setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint);
qApp->getSettings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C)); qApp->getSettings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
} }

View File

@ -21,7 +21,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>573</width> <width>583</width>
<height>524</height> <height>524</height>
</size> </size>
</property> </property>

View File

@ -73,7 +73,6 @@ DialogIndividualMeasurements::DialogIndividualMeasurements(VContainer *data, con
&DialogIndividualMeasurements::CheckState); &DialogIndividualMeasurements::CheckState);
connect(ui->toolButtonOpenExist, &QToolButton::clicked, this, &DialogIndividualMeasurements::OpenTable); connect(ui->toolButtonOpenExist, &QToolButton::clicked, this, &DialogIndividualMeasurements::OpenTable);
connect(ui->toolButtonOpenNew, &QToolButton::clicked, this, &DialogIndividualMeasurements::NewTable); connect(ui->toolButtonOpenNew, &QToolButton::clicked, this, &DialogIndividualMeasurements::NewTable);
this->setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -9,10 +9,22 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>385</width> <width>505</width>
<height>295</height> <height>295</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>505</width>
<height>295</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>505</width>
<height>295</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Individual measurements</string> <string>Individual measurements</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>345</height> <height>345</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>661</width>
<height>345</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>661</width>
<height>345</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Create a layout</string> <string>Create a layout</string>
</property> </property>

View File

@ -21,7 +21,7 @@
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>529</width> <width>448</width>
<height>244</height> <height>244</height>
</size> </size>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>562</height> <height>562</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>657</width>
<height>562</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>657</width>
<height>562</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Pattern properties</string> <string>Pattern properties</string>
</property> </property>

View File

@ -10,6 +10,12 @@
<height>179</height> <height>179</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>692</width>
<height>179</height>
</size>
</property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>692</width> <width>692</width>

View File

@ -71,7 +71,6 @@ DialogStandardMeasurements::DialogStandardMeasurements(VContainer *data, const Q
CheckState(); CheckState();
connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogStandardMeasurements::CheckState); connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogStandardMeasurements::CheckState);
this->setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -9,10 +9,16 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>452</width> <width>430</width>
<height>115</height> <height>113</height>
</rect> </rect>
</property> </property>
<property name="maximumSize">
<size>
<width>430</width>
<height>113</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Standard table</string> <string>Standard table</string>
</property> </property>
@ -25,11 +31,11 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QFormLayout" name="formLayout">
<item> <item row="0" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -48,7 +54,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="1">
<widget class="QLineEdit" name="lineEditName"> <widget class="QLineEdit" name="lineEditName">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@ -58,14 +64,10 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="1" column="0">
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -75,7 +77,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<widget class="QComboBox" name="comboBoxTables"> <widget class="QComboBox" name="comboBoxTables">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">

View File

@ -10,6 +10,18 @@
<height>284</height> <height>284</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>412</width>
<height>284</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>412</width>
<height>284</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point at distance along line</string> <string>Point at distance along line</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>329</height> <height>329</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>425</width>
<height>329</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>425</width>
<height>329</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Arc</string> <string>Arc</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>317</height> <height>317</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>428</width>
<height>317</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>428</width>
<height>317</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point along bisector</string> <string>Point along bisector</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>284</height> <height>284</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>419</width>
<height>284</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>419</width>
<height>284</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point intersect curve and axis</string> <string>Point intersect curve and axis</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>218</height> <height>218</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>412</width>
<height>218</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>412</width>
<height>218</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Segment an arc</string> <string>Segment an arc</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>218</height> <height>218</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>412</width>
<height>218</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>412</width>
<height>218</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Segmenting a simple curve</string> <string>Segmenting a simple curve</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>218</height> <height>218</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>412</width>
<height>218</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>412</width>
<height>218</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Segment a curved path</string> <string>Segment a curved path</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>342</height> <height>342</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>565</width>
<height>342</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>565</width>
<height>342</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Seam allowance tool</string> <string>Seam allowance tool</string>
</property> </property>

View File

@ -13,6 +13,18 @@
<height>365</height> <height>365</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>390</width>
<height>365</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>390</width>
<height>365</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Edit formula</string> <string>Edit formula</string>
</property> </property>

View File

@ -16,6 +16,18 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>358</width>
<height>323</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>358</width>
<height>323</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point at distance and angle</string> <string>Point at distance and angle</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>245</height> <height>245</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>285</width>
<height>245</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>285</width>
<height>245</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Perpendicular point along line</string> <string>Perpendicular point along line</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>196</height> <height>196</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>367</width>
<height>196</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>367</width>
<height>196</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point at line intersection</string> <string>Point at line intersection</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>317</height> <height>317</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>457</width>
<height>317</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>457</width>
<height>317</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point intersect line and axis</string> <string>Point intersect line and axis</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>428</height> <height>428</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>517</width>
<height>428</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>517</width>
<height>428</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point along perpendicular</string> <string>Point along perpendicular</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>251</height> <height>251</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>498</width>
<height>251</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>498</width>
<height>251</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point at intersection of arc and line</string> <string>Point at intersection of arc and line</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>146</height> <height>146</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>285</width>
<height>146</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>285</width>
<height>146</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Point from X and Y of two other points</string> <string>Point from X and Y of two other points</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>317</height> <height>317</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>488</width>
<height>317</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>488</width>
<height>317</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Special point on shoulder</string> <string>Special point on shoulder</string>
</property> </property>

View File

@ -13,6 +13,18 @@
<height>202</height> <height>202</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>250</width>
<height>202</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>202</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Single point</string> <string>Single point</string>
</property> </property>
@ -35,6 +47,12 @@
<height>129</height> <height>129</height>
</rect> </rect>
</property> </property>
<property name="maximumSize">
<size>
<width>241</width>
<height>129</height>
</size>
</property>
<property name="toolTip"> <property name="toolTip">
<string>Coordinates on the sheet</string> <string>Coordinates on the sheet</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>233</height> <height>233</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>540</width>
<height>233</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>540</width>
<height>233</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Simple curve</string> <string>Simple curve</string>
</property> </property>

View File

@ -10,6 +10,18 @@
<height>322</height> <height>322</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>528</width>
<height>322</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>528</width>
<height>322</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Curved path</string> <string>Curved path</string>
</property> </property>

View File

@ -67,7 +67,6 @@ DialogTool::DialogTool(const VContainer *data, const quint32 &toolId, QWidget *p
SCASSERT(data != nullptr); SCASSERT(data != nullptr);
timerFormula = new QTimer(this); timerFormula = new QTimer(this);
connect(timerFormula, &QTimer::timeout, this, &DialogTool::EvalFormula); connect(timerFormula, &QTimer::timeout, this, &DialogTool::EvalFormula);
this->setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint);
} }

View File

@ -10,6 +10,18 @@
<height>212</height> <height>212</height>
</rect> </rect>
</property> </property>
<property name="minimumSize">
<size>
<width>285</width>
<height>212</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>285</width>
<height>212</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Triangle tool</string> <string>Triangle tool</string>
</property> </property>