Skip to content

Commit

Permalink
lxqt-admin-time: Set null icons (#305)
Browse files Browse the repository at this point in the history
* lxqt-admin-time: Set null icons

* Use QStringLiteral

* Use "preferences-system-time" for both
  • Loading branch information
isf63 authored Jan 12, 2025
1 parent e61d9c9 commit 547e3fe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lxqt-admin-time/timeadmindialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@
#define ZONETAB_PATH "/usr/share/zoneinfo/zone.tab"

TimeAdminDialog::TimeAdminDialog(QWidget *parent):
LXQt::ConfigDialog(tr("Time and date configuration"),new LXQt::Settings(QSL("TimeDate")), parent)
LXQt::ConfigDialog(tr("Time and date configuration"), new LXQt::Settings(QSL("TimeDate")), parent)
{
setMinimumSize(QSize(400,400));
setMinimumSize(QSize(400, 400));
mWindowTitle = windowTitle();

mDateTimeWidget = new DateTimePage(mTimeDateCtl.useNtp(), mTimeDateCtl.localRtc(), this);
addPage(mDateTimeWidget,tr("Date and time"));
connect(this, &LXQt::ConfigDialog::reset, mDateTimeWidget,&DateTimePage::reload);
connect(mDateTimeWidget,&DateTimePage::changed,this,&TimeAdminDialog::onChanged);
addPage(mDateTimeWidget, tr("Date and time"), QStringLiteral("preferences-system-time"));
connect(this, &LXQt::ConfigDialog::reset, mDateTimeWidget, &DateTimePage::reload);
connect(mDateTimeWidget, &DateTimePage::changed, this, &TimeAdminDialog::onChanged);

QStringList zones;
QString currentZone;
loadTimeZones(zones,currentZone);
mTimezoneWidget = new TimezonePage(zones,currentZone,this);
addPage(mTimezoneWidget,tr("Timezone"));
connect(this,&TimeAdminDialog::reset,mTimezoneWidget,&TimezonePage::reload);
connect(mTimezoneWidget,&TimezonePage::changed,this,&TimeAdminDialog::onChanged);
loadTimeZones(zones, currentZone);
mTimezoneWidget = new TimezonePage(zones, currentZone, this);
addPage(mTimezoneWidget, tr("Timezone"), QStringLiteral("preferences-system-time"));
connect(this,&TimeAdminDialog::reset, mTimezoneWidget, &TimezonePage::reload);
connect(mTimezoneWidget, &TimezonePage::changed, this, &TimeAdminDialog::onChanged);

setButtons(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
connect(this, &LXQt::ConfigDialog::clicked, this, &TimeAdminDialog::onButtonClicked);
Expand Down

0 comments on commit 547e3fe

Please sign in to comment.