summaryrefslogtreecommitdiff
path: root/tikzit/src/gui/propertypalette.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-02-03 16:11:29 +0100
committerAleks Kissinger <aleks0@gmail.com>2017-02-03 16:11:29 +0100
commite1756ba69dd626073e22fd0a4f4c5fda42c88829 (patch)
treed79f72a648f89ca9201681b4c5443fceeb8faad9 /tikzit/src/gui/propertypalette.cpp
parentb392859bb192a2e02aec09f2eacf5ecdf44fdfe4 (diff)
drawing grid
Diffstat (limited to 'tikzit/src/gui/propertypalette.cpp')
-rw-r--r--tikzit/src/gui/propertypalette.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tikzit/src/gui/propertypalette.cpp b/tikzit/src/gui/propertypalette.cpp
index e3eec17..ea0e90e 100644
--- a/tikzit/src/gui/propertypalette.cpp
+++ b/tikzit/src/gui/propertypalette.cpp
@@ -11,6 +11,11 @@ PropertyPalette::PropertyPalette(QWidget *parent) :
QDockWidget(parent),
ui(new Ui::PropertyPalette)
{
+ setWindowFlags(Qt::Window
+ | Qt::WindowStaysOnTopHint
+ | Qt::CustomizeWindowHint
+ | Qt::WindowTitleHint);
+ //setFocusPolicy(Qt::NoFocus);
ui->setupUi(this);
GraphElementData *d = new GraphElementData();
d->setProperty("key 1", "value 1");
@@ -22,7 +27,10 @@ PropertyPalette::PropertyPalette(QWidget *parent) :
ui->treeView->setModel(d);
QSettings settings("tikzit", "tikzit");
- restoreGeometry(settings.value("property-palette-geometry").toByteArray());
+ QVariant geom = settings.value("property-palette-geometry");
+ if (geom != QVariant()) {
+ restoreGeometry(geom.toByteArray());
+ }
}
PropertyPalette::~PropertyPalette()