began large scale restructure

This commit is contained in:
itsmattkc
2019-06-17 10:17:04 -07:00
parent 0acee942f4
commit 9afbe92574
39 changed files with 1179 additions and 884 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "panel.h"
PanelWidget::PanelWidget(QWidget *parent) {
}
void PanelWidget::SetTitle(const QString &t)
{
title_ = t;
UpdateTitle();
}
void PanelWidget::SetSubtitle(const QString &t)
{
subtitle_ = t;
UpdateTitle();
}
void PanelWidget::UpdateTitle()
{
if (subtitle_.isEmpty()) {
setWindowTitle(title_);
} else {
setWindowTitle(tr("%1: %2").arg(title_, subtitle_));
}
}