diff options
| author | 2015-05-12 16:19:47 -0400 | |
|---|---|---|
| committer | 2015-05-12 16:19:47 -0400 | |
| commit | 6ce5ee411d1e6093b68b1b4eca5dc6c12b927a96 (patch) | |
| tree | 1a98416041b39765c1c42ffbeab6da9fd40e181b /SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp | |
| parent | 1fc9d1a4a1af320e39810cee21bed1201e2bddfd (diff) | |
| parent | 9618f0ebbf4b88045247c01ce8c8f58203508ebf (diff) | |
Merge tag 'upstream/3.0.6'
Upstream version 3.0.6
# gpg: Signature made Tue 12 May 2015 04:19:45 PM EDT using RSA key ID EBE9BD91
# gpg: Good signature from "Unit 193 <unit193@gmail.com>"
# gpg: aka "Unit 193 <unit193@ninthfloor.org>"
# gpg: aka "Unit 193 <unit193@ubuntu.com>"
# gpg: aka "Unit 193 <unit193@ninthfloor.com>"
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp b/SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp index 2bae2f9..c99b774 100644 --- a/SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/multieditor/multieditor.cpp @@ -26,6 +26,7 @@ #include <QToolButton> #include <QDebug> #include <QKeyEvent> +#include <themetuner.h> static QHash<QString,bool> missingEditorPluginsAlreadyWarned; @@ -47,9 +48,17 @@ void MultiEditor::init() QHBoxLayout* hbox = new QHBoxLayout(); hbox->setMargin(0); - hbox->setSpacing(0); + hbox->setSpacing(10); top->setLayout(hbox); + cornerLabel = new QLabel(); + QFont font = cornerLabel->font(); + font.setBold(true); + cornerLabel->setFont(font); + cornerLabel->setFrameStyle(QFrame::StyledPanel|QFrame::Plain); + hbox->addWidget(cornerLabel); + cornerLabel->setVisible(false); + nullCheck = new QCheckBox(tr("Null value", "multieditor")); hbox->addWidget(nullCheck); @@ -156,6 +165,7 @@ void MultiEditor::addEditor(MultiEditorWidget* editorWidget) connect(editorWidget, SIGNAL(valueModified()), this, SLOT(invalidateValue())); editors << editorWidget; tabs->addTab(editorWidget, editorWidget->getTabLabel().replace("&", "&&")); + THEME_TUNER->manageCompactLayout(editorWidget); editorWidget->installEventFilter(this); } @@ -241,6 +251,12 @@ void MultiEditor::focusThisEditor() w->focusThisWidget(); } +void MultiEditor::setCornerLabel(const QString &label) +{ + cornerLabel->setText(label); + cornerLabel->setVisible(!label.isNull()); +} + void MultiEditor::loadBuiltInEditors() { PLUGINS->loadBuiltInPlugin(new MultiEditorBoolPlugin); |
