From eb8c4d5a5e206ed9bb06dd8644b368fc7f874027 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 10 Nov 2009 05:46:01 +0000 Subject: [PATCH] Methods of communication with cell of a table become virtual in order to have opportunity to change their behavior in the table child classes. --- src/Qtx/QtxTable.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Qtx/QtxTable.h b/src/Qtx/QtxTable.h index 0c2e2a33b..283a11bd3 100644 --- a/src/Qtx/QtxTable.h +++ b/src/Qtx/QtxTable.h @@ -92,17 +92,17 @@ public: virtual void setHeaderBackground( const Qt::Orientation, const int, const QColor& ); virtual void setHeaderIcon( const Qt::Orientation, const int, const QIcon& ); - QVariant cellData( const int, const int ) const; - QFont cellFont( const int, const int ) const; - QColor cellForeground( const int, const int ) const; - QColor cellBackground( const int, const int ) const; - QIcon cellIcon( const int, const int ) const; - - void setCellData( const int, const int, const QVariant& ); - void setCellFont( const int, const int, const QFont& ); - void setCellForeground( const int, const int, const QColor& ); - void setCellBackground( const int, const int, const QColor& ); - void setCellIcon( const int, const int, QIcon& ); + virtual QVariant cellData( const int, const int ) const; + virtual QFont cellFont( const int, const int ) const; + virtual QColor cellForeground( const int, const int ) const; + virtual QColor cellBackground( const int, const int ) const; + virtual QIcon cellIcon( const int, const int ) const; + + virtual void setCellData( const int, const int, const QVariant& ); + virtual void setCellFont( const int, const int, const QFont& ); + virtual void setCellForeground( const int, const int, const QColor& ); + virtual void setCellBackground( const int, const int, const QColor& ); + virtual void setCellIcon( const int, const int, QIcon& ); virtual QTableWidgetItem* getItem( const int, const int, const bool = true ); virtual QModelIndexList getSelectedIndexes(); -- 2.39.2