mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
Ref T442, getColumns from view/model
This commit is contained in:
@@ -130,6 +130,9 @@ namespace BlackGui
|
|||||||
//! Convert to JSON string
|
//! Convert to JSON string
|
||||||
virtual QString toJsonString(QJsonDocument::JsonFormat format = QJsonDocument::Indented, bool selectedOnly = false) const = 0;
|
virtual QString toJsonString(QJsonDocument::JsonFormat format = QJsonDocument::Indented, bool selectedOnly = false) const = 0;
|
||||||
|
|
||||||
|
//! The columns
|
||||||
|
const CColumns &getColumns() const { return m_columns; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Asynchronous update finished
|
//! Asynchronous update finished
|
||||||
void asyncUpdateFinished();
|
void asyncUpdateFinished();
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ class QModelIndex;
|
|||||||
class QPaintEvent;
|
class QPaintEvent;
|
||||||
class QPoint;
|
class QPoint;
|
||||||
class QShowEvent;
|
class QShowEvent;
|
||||||
class QWidget;
|
|
||||||
class QTabWidget;
|
class QTabWidget;
|
||||||
|
|
||||||
namespace BlackMisc { class CWorker; }
|
namespace BlackMisc { class CWorker; }
|
||||||
@@ -64,6 +63,11 @@ namespace BlackGui
|
|||||||
class CFontMenu;
|
class CFontMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace Models
|
||||||
|
{
|
||||||
|
class CColumns;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Filters
|
namespace Filters
|
||||||
{
|
{
|
||||||
class CFilterDialog;
|
class CFilterDialog;
|
||||||
@@ -604,6 +608,9 @@ namespace BlackGui
|
|||||||
//! Model
|
//! Model
|
||||||
const ModelClass *derivedModel() const { return m_model; }
|
const ModelClass *derivedModel() const { return m_model; }
|
||||||
|
|
||||||
|
//! The columns
|
||||||
|
const Models::CColumns &getColumns() const { return this->derivedModel()->getColumns(); }
|
||||||
|
|
||||||
//! Update whole container
|
//! Update whole container
|
||||||
//! \return int size after update
|
//! \return int size after update
|
||||||
int updateContainer(const ContainerType &container, bool sort = true, bool resize = true);
|
int updateContainer(const ContainerType &container, bool sort = true, bool resize = true);
|
||||||
|
|||||||
Reference in New Issue
Block a user