|
|
@ -2,6 +2,8 @@
|
|
|
|
#include "ui_gridform.h"
|
|
|
|
#include "ui_gridform.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
|
|
|
|
|
|
|
|
#include "context.h"
|
|
|
|
#include "context.h"
|
|
|
|
#include "filterui.h"
|
|
|
|
#include "filterui.h"
|
|
|
@ -108,6 +110,15 @@ void IGridForm::columnsAccepted()
|
|
|
|
Context::instance().settings()->setValue("grids/" + pluginId() + "/hide", QVariant::fromValue(varList));
|
|
|
|
Context::instance().settings()->setValue("grids/" + pluginId() + "/hide", QVariant::fromValue(varList));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void IGridForm::widthChanged(int logicalIndex, int oldSize, int newSize)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Q_UNUSED(oldSize);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QMap<QString, QVariant> widths = Context::instance().settings()->value("grids/" + pluginId() + "/widths").toMap();
|
|
|
|
|
|
|
|
widths[QString::number(logicalIndex)] = newSize;
|
|
|
|
|
|
|
|
Context::instance().settings()->setValue("grids/" + pluginId() + "/widths", QVariant::fromValue(widths));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void IGridForm::on_btnFilter_toggled(bool checked)
|
|
|
|
void IGridForm::on_btnFilter_toggled(bool checked)
|
|
|
|
{
|
|
|
|
{
|
|
|
|