diff --git a/core/igridform.cpp b/core/igridform.cpp index f98d651..05d2c86 100644 --- a/core/igridform.cpp +++ b/core/igridform.cpp @@ -54,6 +54,11 @@ QTableView *IGridForm::tableView() return ui->tableView; } +QWidget *IGridForm::toolbar() +{ + return ui->widget; +} + void IGridForm::hideColumns(const QList &cols) { foreach (int col, cols) { diff --git a/core/igridform.h b/core/igridform.h index 7017afa..e419706 100644 --- a/core/igridform.h +++ b/core/igridform.h @@ -6,6 +6,7 @@ #include #include #include +#include #include "columndialog.h" #include "filterui.h" @@ -27,6 +28,7 @@ public: void setPluginId(const QString &pluginId); QString pluginId(); QTableView *tableView(); + QWidget *toolbar(); virtual void setTranslations(const QMap &translations) = 0; signals: diff --git a/core/iplugin.h b/core/iplugin.h index e669d13..0d47eba 100644 --- a/core/iplugin.h +++ b/core/iplugin.h @@ -75,6 +75,7 @@ public: return (Service*)m_service; } + virtual bool showIcon() { return true; } virtual QTranslator* translator() { return NULL; } virtual QIcon pluginIcon() { return QIcon(); } QMap translations() { return m_translations; }