save settings fix
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
void setFilter(const Filter & f);
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void changeEvent(QEvent *e) override;
|
||||
|
||||
QStringList getFilters(QLineEdit * le) const;
|
||||
void setFilters(QLineEdit * le, QStringList f);
|
||||
|
||||
@@ -17,9 +17,9 @@ namespace ProjectFilesystemPlugin {
|
||||
ProjectFilesystemPluginPlugin();
|
||||
~ProjectFilesystemPluginPlugin();
|
||||
|
||||
bool initialize(const QStringList &arguments, QString *errorString);
|
||||
void extensionsInitialized();
|
||||
ShutdownFlag aboutToShutdown();
|
||||
bool initialize(const QStringList &arguments, QString *errorString) override;
|
||||
void extensionsInitialized() override;
|
||||
ShutdownFlag aboutToShutdown() override;
|
||||
|
||||
private:
|
||||
void triggerAction();
|
||||
|
||||
@@ -27,8 +27,9 @@ public:
|
||||
void setCurrentSearch(QString v) {lineFilter->setText(v);}
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent * e);
|
||||
void timerEvent(QTimerEvent * e);
|
||||
void changeEvent(QEvent * e) override;
|
||||
void timerEvent(QTimerEvent * e) override;
|
||||
|
||||
void createTree(QTreeWidgetItem * ti, const QString & dir, bool proc_events = true);
|
||||
void createProjectTree(void * p);
|
||||
void projectNameChanged();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "projectfilesystemwidgetplugin.h"
|
||||
#include "projectfilesystemwidget.h"
|
||||
#include <utils/utilsicons.h>
|
||||
#include <utils/qtcsettings.h>
|
||||
#include <QToolButton>
|
||||
#include <QSettings>
|
||||
#include <QMessageBox>
|
||||
@@ -29,7 +30,7 @@ Core::NavigationView ProjectFSWidgetFactory::createWidget() {
|
||||
}
|
||||
|
||||
|
||||
void ProjectFSWidgetFactory::saveSettings(QSettings * settings, int position, QWidget * widget) {
|
||||
void ProjectFSWidgetFactory::saveSettings(Utils::QtcSettings * settings, int position, QWidget * widget) {
|
||||
//QMessageBox::information(0, "", QString::fromLatin1(widget->metaObject()->className()));
|
||||
ProjectFilesystemWidget * w = qobject_cast<ProjectFilesystemWidget * >(widget);
|
||||
if (!w) return;
|
||||
|
||||
@@ -10,12 +10,12 @@ public:
|
||||
ProjectFSWidgetFactory();
|
||||
~ProjectFSWidgetFactory() {}
|
||||
|
||||
Core::NavigationView createWidget();
|
||||
Core::NavigationView createWidget() override;
|
||||
|
||||
void saveSettings(QSettings * settings, int position, QWidget * widget);
|
||||
void restoreSettings(QSettings * settings, int position, QWidget * widget);
|
||||
void saveSettings(Utils::QtcSettings * settings, int position, QWidget * widget) override;
|
||||
void restoreSettings(QSettings * settings, int position, QWidget * widget) override;
|
||||
|
||||
void changeEvent(QEvent * e);
|
||||
void changeEvent(QEvent * e) override;
|
||||
|
||||
QToolButton * btn_reload = nullptr, * btn_filters = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user