projects
/
buliscores
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added settingsdialog
[buliscores]
/
src
/
scoretable.cpp
diff --git
a/src/scoretable.cpp
b/src/scoretable.cpp
index
78dd66d
..
8bf4b7d
100644
(file)
--- a/
src/scoretable.cpp
+++ b/
src/scoretable.cpp
@@
-5,11
+5,11
@@
#include "scoretable.h"
#include "matchdaymodel.h"
#include "scoretable.h"
#include "matchdaymodel.h"
-ScoreTable::ScoreTable(QWidget *parent) :
+ScoreTable::ScoreTable(QWidget *parent, MatchDayModel* model) :
QTableView(parent)
{
this->setAttribute(Qt::WA_TranslucentBackground);
QTableView(parent)
{
this->setAttribute(Qt::WA_TranslucentBackground);
- this->setModel(new MatchDayModel(this));
+ this->setModel(model);
this->setSelectionMode(QAbstractItemView::NoSelection);
this->verticalHeader()->hide();
this->setSelectionMode(QAbstractItemView::NoSelection);
this->verticalHeader()->hide();
@@
-22,7
+22,6
@@
ScoreTable::ScoreTable(QWidget *parent) :
qDebug() << "Min VertHeaderSize: " << this->verticalHeader()->minimumSectionSize();
qDebug() << "Min VertHeaderSize: " << this->verticalHeader()->minimumSectionSize();
-
this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
@@
-76,5
+75,10
@@
void ScoreTable::dataChanged(const QModelIndex &topLeft, const QModelIndex &bott
qDebug() << s;
updateGeometry();
qDebug() << s;
updateGeometry();
+}
+void ScoreTable::mousePressEvent(QMouseEvent* event)
+{
+ event->ignore();
}
}
+