#include "status/clientstat.h"
#include "util/fmtwidgetitem.h"
-Clients::Clients()
+Clients::Clients() : Pages()
{
setupUi(this);
m_name = tr("Clients");
#include "select.h"
#include "run/run.h"
-Console::Console(QTabWidget *parent)
+Console::Console(QTabWidget *parent) : Pages()
{
QFont font;
m_name = tr("Console");
#include "fileset/fileset.h"
#include "util/fmtwidgetitem.h"
-FileSet::FileSet()
+FileSet::FileSet() : Pages()
{
setupUi(this);
m_name = tr("FileSets");
#include "mediainfo/mediainfo.h"
#include "run/run.h"
-Job::Job(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem)
+Job::Job(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem) : Pages()
{
setupUi(this);
pgInitialize(tr("Job"), parentTreeWidgetItem);
* Constructor, this class does not inherit anything but pages.
*/
JobPlot::JobPlot(QTreeWidgetItem *parentTreeWidgetItem, JobPlotPass &passVals)
+ : Pages()
{
setupUserInterface();
pgInitialize(tr("JobPlot"), parentTreeWidgetItem);
*/
JobList::JobList(const QString &mediaName, const QString &clientName,
const QString &jobName, const QString &filesetName, QTreeWidgetItem *parentTreeWidgetItem)
+ : Pages()
{
setupUi(this);
m_name = "Jobs Run"; /* treeWidgetName has a virtual override in this class */
#include "bat.h"
#include "joblog.h"
-JobLog::JobLog(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem)
+JobLog::JobLog(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem) : Pages()
{
setupUi(this);
pgInitialize(tr("JobLog"), parentTreeWidgetItem);
#include "run/run.h"
#include "util/fmtwidgetitem.h"
-Jobs::Jobs()
+Jobs::Jobs() : Pages()
{
setupUi(this);
m_name = tr("Jobs");
#include "label.h"
#include <QMessageBox>
-labelPage::labelPage()
+labelPage::labelPage() : Pages()
{
QString deflt("");
m_closeable = false;
* An overload of the constructor to have a default storage show in the
* combobox on start. Used from context sensitive in storage class.
*/
-labelPage::labelPage(QString &defString)
+labelPage::labelPage(QString &defString) : Pages()
{
showPage(defString);
}
}
/* Preferences dialog */
-prefsDialog::prefsDialog()
+prefsDialog::prefsDialog() : QDialog()
{
setupUi(this);
}
/*
* A constructor
*/
-MediaEdit::MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId)
+MediaEdit::MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId)
+ : Pages()
{
setupUi(this);
pgInitialize(tr("Media Edit"), parentWidget);
/*
* A constructor
*/
-MediaInfo::MediaInfo(QTreeWidgetItem *parentWidget, QString &mediaName)
+MediaInfo::MediaInfo(QTreeWidgetItem *parentWidget, QString &mediaName)
+ : Pages()
{
setupUi(this);
pgInitialize(tr("Media Info"), parentWidget);
#include "run/run.h"
#include "util/fmtwidgetitem.h"
-MediaList::MediaList()
+MediaList::MediaList() : Pages()
{
setupUi(this);
m_name = tr("Pools");
#include "run/run.h"
#include "util/fmtwidgetitem.h"
-MediaView::MediaView()
+MediaView::MediaView() : Pages()
{
setupUi(this);
m_name = tr("Media");
/*
* A constructor
*/
-mountDialog::mountDialog(Console *console, QString &storageName)
+mountDialog::mountDialog(Console *console, QString &storageName) : QDialog()
{
m_console = console;
m_storageName = storageName;
}
/* Need to initialize variables here */
-Pages::Pages()
+Pages::Pages() : QWidget()
{
m_docked = false;
m_onceDocked = false;
#include "restore.h"
#include "util/fmtwidgetitem.h"
-bRestore::bRestore()
+bRestore::bRestore() : Pages()
{
m_name = tr("bRestore");
m_client = "";
#include "restore.h"
/* Constructor to have job id list default in */
-prerestorePage::prerestorePage(QString &data, unsigned int datatype)
+prerestorePage::prerestorePage(QString &data, unsigned int datatype) : Pages()
{
m_dataIn = data;
m_dataInType = datatype;
static const int dbglvl = 100;
-restorePage::restorePage(int conn)
+restorePage::restorePage(int conn) : Pages()
{
Dmsg1(dbglvl, "Construcing restorePage Instance connection %i\n", conn);
m_conn = conn;
#include "restoretree.h"
#include "pages.h"
-restoreTree::restoreTree()
+restoreTree::restoreTree() : Pages()
{
setupUi(this);
m_name = tr("Version Browser");
/*
* Setup all the combo boxes and display the dialog
*/
-estimatePage::estimatePage()
+estimatePage::estimatePage() : Pages()
{
QDateTime dt;
/*
* Setup all the combo boxes and display the dialog
*/
-prunePage::prunePage(const QString &volume, const QString &client)
+prunePage::prunePage(const QString &volume, const QString &client) : Pages()
{
QDateTime dt;
#include "run.h"
-runPage::runPage()
+runPage::runPage() : Pages()
{
init();
show();
}
-runPage::runPage(const QString &defJob)
+runPage::runPage(const QString &defJob) : Pages()
{
m_dockOnFirstUse = false;
init();
runPage::runPage(const QString &defJob, const QString &level,
const QString &pool, const QString &storage,
const QString &client, const QString &fileset)
+ : Pages()
{
m_dockOnFirstUse = false;
init();
/*
* Setup all the combo boxes and display the dialog
*/
-runCmdPage::runCmdPage(int conn)
+runCmdPage::runCmdPage(int conn) : Pages()
{
m_name = tr("Restore Run");
pgInitialize();
/*
* Read the items for the selection
*/
-selectDialog::selectDialog(Console *console, int conn)
+selectDialog::selectDialog(Console *console, int conn) : QDialog()
{
m_conn = conn;
QDateTime dt;
/*
* Read the items for the selection
*/
-yesnoPopUp::yesnoPopUp(Console *console, int conn)
+yesnoPopUp::yesnoPopUp(Console *console, int conn) : QDialog()
{
QMessageBox msgBox;
* Constructor for the class
*/
ClientStat::ClientStat(QString &client, QTreeWidgetItem *parentTreeWidgetItem)
+ : Pages()
{
m_client = client;
setupUi(this);
/*
* Constructor for the class
*/
-DirStat::DirStat()
+DirStat::DirStat() : Pages()
{
setupUi(this);
m_name = tr("Director Status");
* Constructor for the class
*/
StorStat::StorStat(QString &storage, QTreeWidgetItem *parentTreeWidgetItem)
+ : Pages()
{
m_storage = storage;
setupUi(this);
// use user selection to add slot= argument
//
-Content::Content(QString storage, QTreeWidgetItem *parentWidget)
+Content::Content(QString storage, QTreeWidgetItem *parentWidget) : Pages()
{
setupUi(this);
pgInitialize(storage, parentWidget);
#include "status/storstat.h"
#include "util/fmtwidgetitem.h"
-Storage::Storage()
+Storage::Storage() : Pages()
{
setupUi(this);
pgInitialize(tr("Storage"));
break;
}
- setNumericFld(index, msg, qfld);
+ setNumericFld(index, msg, QVariant(qfld));
}
void ItemFormatterBase::setDurationFld(int index, const QString &fld)
msg += QString(" %1s").arg(dfld);
}
- setNumericFld(index, msg, fld.trimmed().toLongLong());
+ setNumericFld(index, msg, QVariant(fld.trimmed().toLongLong()));
}
void ItemFormatterBase::setVolStatusFld(int index, const QString &fld, bool center)