summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/findincurrentfile.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2012-01-23 11:45:33 +0100
committerEike Ziller <eike.ziller@nokia.com>2012-01-23 14:01:00 +0100
commitb10a5aa52a3cec3e3002e6b4d5847d6947e9f23d (patch)
tree91d86f1fed1361c31418f3fd856144b57ee7719a /src/plugins/texteditor/findincurrentfile.cpp
parenta8890669b075f0b2ca0f0b872475cd82b1cc5fb9 (diff)
downloadqt-creator-b10a5aa52a3cec3e3002e6b4d5847d6947e9f23d.tar.gz
Clean up.
Change-Id: I7f9c2d27fb4e38866443d066f5c8a4946aaa1b17 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/findincurrentfile.cpp')
-rw-r--r--src/plugins/texteditor/findincurrentfile.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/plugins/texteditor/findincurrentfile.cpp b/src/plugins/texteditor/findincurrentfile.cpp
index b896fe1a73..8e399ab43f 100644
--- a/src/plugins/texteditor/findincurrentfile.cpp
+++ b/src/plugins/texteditor/findincurrentfile.cpp
@@ -36,20 +36,14 @@
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
-#include <QtCore/QtDebug>
#include <QtCore/QSettings>
-#include <QtCore/QDirIterator>
-#include <QtGui/QPushButton>
-#include <QtGui/QFileDialog>
-#include <QtGui/QVBoxLayout>
using namespace Find;
using namespace TextEditor;
using namespace TextEditor::Internal;
FindInCurrentFile::FindInCurrentFile()
- : m_configWidget(0),
- m_currentFile(0)
+ : m_currentFile(0)
{
connect(Core::ICore::instance()->editorManager(), SIGNAL(currentEditorChanged(Core::IEditor*)),
this, SLOT(handleFileChange(Core::IEditor*)));
@@ -116,22 +110,6 @@ void FindInCurrentFile::handleFileChange(Core::IEditor *editor)
}
-QWidget *FindInCurrentFile::createConfigWidget()
-{
- if (!m_configWidget) {
- m_configWidget = new QWidget;
- QGridLayout * const gridLayout = new QGridLayout(m_configWidget);
- gridLayout->setMargin(0);
- m_configWidget->setLayout(gridLayout);
- // just for the layout HACK
- QLabel * const filePatternLabel = new QLabel;
- filePatternLabel->setMinimumWidth(80);
- filePatternLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
- gridLayout->addWidget(filePatternLabel, 0, 0);
- }
- return m_configWidget;
-}
-
void FindInCurrentFile::writeSettings(QSettings *settings)
{
settings->beginGroup(QLatin1String("FindInCurrentFile"));
@@ -142,6 +120,6 @@ void FindInCurrentFile::writeSettings(QSettings *settings)
void FindInCurrentFile::readSettings(QSettings *settings)
{
settings->beginGroup(QLatin1String("FindInCurrentFile"));
- readCommonSettings(settings, QLatin1String("*.cpp,*.h"));
+ readCommonSettings(settings, QLatin1String("*"));
settings->endGroup();
}