diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2018-12-13 17:10:52 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2018-12-13 17:10:52 +0000 |
commit | 1326f5eb26db1d3037ae6c7c0ac4d333efe83fee (patch) | |
tree | e4f5c5dc8d597276a9e8ed0d4ed5a47613d7df35 /graphics/diffpdf/files/patch-optionsform.cpp | |
parent | Update SLADE to version 3.1.3. (diff) |
- use qt5
Obtained from: debian
Diffstat (limited to 'graphics/diffpdf/files/patch-optionsform.cpp')
-rw-r--r-- | graphics/diffpdf/files/patch-optionsform.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/graphics/diffpdf/files/patch-optionsform.cpp b/graphics/diffpdf/files/patch-optionsform.cpp new file mode 100644 index 000000000000..ae16f5c8b772 --- /dev/null +++ b/graphics/diffpdf/files/patch-optionsform.cpp @@ -0,0 +1,26 @@ +--- optionsform.cpp.orig 2013-10-15 07:01:22 UTC ++++ optionsform.cpp +@@ -76,9 +76,9 @@ void OptionsForm::createWidgets() + << qMakePair(tr("Diagonal \\"), Qt::FDiagPattern) + << qMakePair(tr("Diagonal Cross"), Qt::DiagCrossPattern)) + brushStyleComboBox->addItem(brushSwatch(pair.second, color), +- pair.first, pair.second); ++ pair.first, QVariant::fromValue(pair.second)); + brushStyleComboBox->setCurrentIndex(brushStyleComboBox->findData( +- brush.style())); ++ QVariant::fromValue(brush.style()))); + + penStyleComboBox = new QComboBox; + typedef QPair<QString, Qt::PenStyle> PenPair; +@@ -90,9 +90,9 @@ void OptionsForm::createWidgets() + << qMakePair(tr("Dash-Dotted"), Qt::DashDotLine) + << qMakePair(tr("Dash-Dot-Dotted"), Qt::DashDotDotLine)) + penStyleComboBox->addItem(penStyleSwatch(pair.second, color), +- pair.first, pair.second); ++ pair.first, QVariant::fromValue(pair.second)); + penStyleComboBox->setCurrentIndex(penStyleComboBox->findData( +- pen.style())); ++ QVariant::fromValue(pen.style()))); + + alphaSpinBox = new QSpinBox; + alphaSpinBox->setRange(1, 100); |