diff options
| author | 2016-05-12 16:14:42 +0100 | |
|---|---|---|
| committer | 2016-05-12 18:06:25 +0100 | |
| commit | f70822528bbe08d9379be2a063e4d0ca80bcadeb (patch) | |
| tree | a63414110eebf1c4c2e0253ff35ef20ce81a81bf /src | |
| parent | texticons: add select label to button (diff) | |
| download | KVIrc-f70822528bbe08d9379be2a063e4d0ca80bcadeb.tar.gz KVIrc-f70822528bbe08d9379be2a063e4d0ca80bcadeb.tar.bz2 KVIrc-f70822528bbe08d9379be2a063e4d0ca80bcadeb.zip | |
ScriptEditorImplementation: add dialog minimum width
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/editor/ScriptEditorImplementation.cpp | 9 | ||||
| -rw-r--r-- | src/modules/popupeditor/PopupEditorWindow.cpp | 5 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/modules/editor/ScriptEditorImplementation.cpp b/src/modules/editor/ScriptEditorImplementation.cpp index a05ca3d84..d4cb0cdab 100644 --- a/src/modules/editor/ScriptEditorImplementation.cpp +++ b/src/modules/editor/ScriptEditorImplementation.cpp @@ -461,11 +461,14 @@ ScriptEditorWidgetColorOptions::ScriptEditorWidgetColorOptions(QWidget * pParent m_pSelectorInterfaceList = new KviPointerList<KviSelectorInterface>; m_pSelectorInterfaceList->setAutoDelete(false); setWindowTitle(__tr2qs_ctx("Editor Configuration - KVIrc", "editor")); + QGridLayout * g = new QGridLayout(this); KviTalVBox * box = new KviTalVBox(this); g->addWidget(box, 0, 0); box->setMargin(0); box->setSpacing(0); + box->setMinimumWidth(280); + KviFontSelector * f = new KviFontSelector(box, __tr2qs_ctx("Font:", "editor"), &g_fntNormal, true); m_pSelectorInterfaceList->append(f); KviTalGroupBox * gbox = new KviTalGroupBox(Qt::Horizontal, __tr2qs_ctx("Colors", "editor"), box); @@ -871,8 +874,6 @@ void ScriptEditorImplementation::saveToFile() { QString szBuffer = m_pEditor->toPlainText(); - //if(tmp.isEmpty())tmp = ""; - //KviCString buffer = tmp.toUtf8().data(); if(!KviFileUtils::writeFile(szFileName, szBuffer)) { QString szTmp; @@ -960,8 +961,6 @@ void ScriptEditorImplementation::loadFromFile() { m_pEditor->setPlainText(szBuffer); setCursorPosition(0); - //m_pEditor->moveCursor(QTextEdit::MoveEnd,false); - //updateRowColLabel(); } else { @@ -1002,7 +1001,7 @@ ScriptEditorReplaceDialog::ScriptEditorReplaceDialog(QWidget * pParent, const QS emit initFind(); QPalette p = palette(); p.setColor(foregroundRole(), QColor(0, 0, 0)); - p.setColor(backgroundRole(), QColor(236, 233, 216)); + p.setColor(backgroundRole(), QColor(255, 255, 255)); setPalette(p); QGridLayout * pLayout = new QGridLayout(this); diff --git a/src/modules/popupeditor/PopupEditorWindow.cpp b/src/modules/popupeditor/PopupEditorWindow.cpp index 324ffb498..6e469d1c9 100644 --- a/src/modules/popupeditor/PopupEditorWindow.cpp +++ b/src/modules/popupeditor/PopupEditorWindow.cpp @@ -453,8 +453,6 @@ void SinglePopupEditor::customContextMenuRequested(const QPoint & pos) bool bSeparatorInserted = false; - // if(!findPrologue(parentMenu)) - // { m_pContextPopup->addSeparator(); bSeparatorInserted = true; m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::Prologue)), @@ -1330,7 +1328,6 @@ void PopupEditorWidget::currentItemChanged(QTreeWidgetItem * it, QTreeWidgetItem saveLastEditedItem(); m_pLastEditedItem = (MenuTreeWidgetItem *)it; - m_pEditor->edit(m_pLastEditedItem); } @@ -1348,8 +1345,6 @@ void PopupEditorWidget::commit() saveLastEditedItem(); - //KviKvsPopupManager::instance()->clear(); - int topcount = m_pTreeWidget->topLevelItemCount(); // Copy the original popup dict |
