Context cleanup

Change-Id: I5e228acda32e8924d6a9bed13ea34182fff1dbb1
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Orgad Shaneh
2012-08-01 11:33:51 +03:00
committed by hjk
parent e982b5b3d1
commit 93756975e1
5 changed files with 1 additions and 11 deletions

View File

@@ -73,11 +73,6 @@ Core::IEditor *CMakeEditor::duplicate(QWidget *parent)
return ret->editor();
}
Core::Context CMakeEditor::context() const
{
return Core::Context(Constants::C_CMAKEEDITOR);
}
Core::Id CMakeEditor::id() const
{
return CMakeProjectManager::Constants::CMAKE_EDITOR_ID;

View File

@@ -58,7 +58,6 @@ public:
bool duplicateSupported() const { return true; }
Core::IEditor *duplicate(QWidget *parent);
Core::Context context() const;
Core::Id id() const;
bool isTemporary() const { return false; }

View File

@@ -75,7 +75,7 @@ class CORE_EXPORT IContext : public QObject
{
Q_OBJECT
public:
IContext(QObject *parent = 0) : QObject(parent), m_widget(0) {}
IContext(QObject *parent = 0) : QObject(parent) {}
virtual Context context() const { return m_context; }
virtual QWidget *widget() const { return m_widget; }

View File

@@ -634,7 +634,6 @@ public:
inline ITextMarkable *markableInterface() { return e->markableInterface(); }
void setContextHelpId(const QString &id) { m_contextHelpId = id; }
QString contextHelpId() const; // from IContext
inline void setTextCodec(QTextCodec *codec, TextCodecReason = TextCodecOtherReason) { e->setTextCodec(codec); }
@@ -653,7 +652,6 @@ private slots:
private:
BaseTextEditorWidget *e;
mutable QString m_contextHelpId;
QToolBar *m_toolBar;
QWidget *m_stretchWidget;
QAction *m_cursorPositionLabelAction;

View File

@@ -92,8 +92,6 @@ public:
virtual ITextMarkable *markableInterface() = 0;
virtual void setContextHelpId(const QString &) = 0;
enum TextCodecReason {
TextCodecOtherReason,
TextCodecFromSystemSetting,