Options dialog: Further polishing.

Task-number: QTCREATOR-26
This commit is contained in:
Friedemann Kleint
2009-11-20 16:55:23 +01:00
parent bc92b63ee1
commit e4a7792d6e
14 changed files with 226 additions and 148 deletions

View File

@@ -34,8 +34,11 @@
#include <utils/consoleprocess.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <QtGui/QMessageBox>
#include <QtCore/QTextStream>
#include "ui_generalsettings.h"
using namespace Utils;
@@ -94,9 +97,20 @@ QWidget *GeneralSettings::createPage(QWidget *parent)
this, SLOT(resetTerminal()));
#endif
if (m_searchKeywords.isEmpty()) {
QTextStream(&m_searchKeywords) << m_page->colorLabel->text() << ' '
<< m_page->terminalLabel->text() << ' ' << m_page->editorLabel->text()
<< ' '<< m_page->modifiedLabel->text();
m_searchKeywords.remove(QLatin1Char('&'));
}
return w;
}
bool GeneralSettings::matches(const QString &s) const
{
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
}
void GeneralSettings::apply()
{
// Apply the new base color if accepted