mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
Event treeWidget fixed properly
This commit is contained in:
parent
263b38749e
commit
79bd4946cf
@ -61,7 +61,7 @@ void DrawText(gGraphWindow & wid, QString text, int x, int y, float angle, QCol
|
|||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
glFlush();
|
glFlush();
|
||||||
QPainter painter(&wid);
|
QPainter painter(&wid);
|
||||||
//painter.setFont(*font);
|
painter.setFont(*font);
|
||||||
painter.setPen(Qt::black);
|
painter.setPen(Qt::black);
|
||||||
painter.setOpacity(1);
|
painter.setOpacity(1);
|
||||||
// painter.setCompositionMode(QPainter::CompositionMode_);
|
// painter.setCompositionMode(QPainter::CompositionMode_);
|
||||||
|
@ -303,8 +303,9 @@ void Daily::on_calendar_currentPageChanged(int year, int month)
|
|||||||
}
|
}
|
||||||
void Daily::UpdateEventsTree(QTreeWidget *tree,Day *day)
|
void Daily::UpdateEventsTree(QTreeWidget *tree,Day *day)
|
||||||
{
|
{
|
||||||
if (!day) return;
|
|
||||||
tree->clear();
|
tree->clear();
|
||||||
|
if (!day) return;
|
||||||
|
|
||||||
tree->setColumnCount(1); // 1 visible common.. (1 hidden)
|
tree->setColumnCount(1); // 1 visible common.. (1 hidden)
|
||||||
|
|
||||||
QTreeWidgetItem *root=NULL;//new QTreeWidgetItem((QTreeWidget *)0,QStringList("Stuff"));
|
QTreeWidgetItem *root=NULL;//new QTreeWidgetItem((QTreeWidget *)0,QStringList("Stuff"));
|
||||||
@ -785,6 +786,7 @@ void Daily::RedrawGraphs()
|
|||||||
|
|
||||||
void Daily::on_treeWidget_itemSelectionChanged()
|
void Daily::on_treeWidget_itemSelectionChanged()
|
||||||
{
|
{
|
||||||
|
if (ui->treeWidget->selectedItems().size()==0) return;
|
||||||
QTreeWidgetItem *item=ui->treeWidget->selectedItems().at(0);
|
QTreeWidgetItem *item=ui->treeWidget->selectedItems().at(0);
|
||||||
if (!item) return;
|
if (!item) return;
|
||||||
QDateTime d;
|
QDateTime d;
|
||||||
|
Loading…
Reference in New Issue
Block a user