mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
UI Nits: Sidebar, invisible root item for intervals
This commit is contained in:
@@ -623,11 +623,11 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
intervalWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
intervalWidget->setFrameStyle(QFrame::NoFrame);
|
||||
|
||||
allIntervals = new QTreeWidgetItem(intervalWidget, FOLDER_TYPE);
|
||||
//allIntervals = new QTreeWidgetItem(intervalWidget, FOLDER_TYPE);
|
||||
allIntervals = intervalWidget->invisibleRootItem();
|
||||
allIntervals->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDropEnabled);
|
||||
|
||||
allIntervals->setText(0, tr("Intervals"));
|
||||
intervalWidget->expandItem(allIntervals);
|
||||
|
||||
QWidget *activityHistory = new QWidget(this);
|
||||
activityHistory->setContentsMargins(0,0,0,0);
|
||||
|
||||
Reference in New Issue
Block a user