plasmoid: Improve note about instance specific settings
This commit is contained in:
parent
1de35382b7
commit
eb298d4e4f
|
@ -10,20 +10,6 @@
|
|||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>The following settings are specific to the current instance of the Plasmoid.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
|
|
|
@ -22,6 +22,21 @@ using namespace QtGui;
|
|||
|
||||
namespace Plasmoid {
|
||||
|
||||
void addPlasmoidSpecificNote(QLayout *layout, QWidget *parent)
|
||||
{
|
||||
auto *const infoLabel = new QLabel(
|
||||
QCoreApplication::translate("Plasmoid::Settings", "The settings on this page are specific to the current instance of the Plasmoid."), parent);
|
||||
infoLabel->setWordWrap(true);
|
||||
QFont infoFont(infoLabel->font());
|
||||
infoFont.setBold(true);
|
||||
infoLabel->setFont(infoFont);
|
||||
auto *const line = new QFrame(parent);
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
layout->addWidget(line);
|
||||
layout->addWidget(infoLabel);
|
||||
}
|
||||
|
||||
// ShortcutOptionPage
|
||||
ShortcutOptionPage::ShortcutOptionPage(SyncthingApplet &applet, QWidget *parentWidget)
|
||||
: ShortcutOptionPageBase(parentWidget)
|
||||
|
@ -46,15 +61,17 @@ void ShortcutOptionPage::reset()
|
|||
|
||||
QWidget *ShortcutOptionPage::setupWidget()
|
||||
{
|
||||
QWidget *widget = new QWidget();
|
||||
auto *const widget = new QWidget();
|
||||
widget->setWindowTitle(QCoreApplication::translate("Plasmoid::ShortcutOptionPage", "Shortcuts"));
|
||||
widget->setWindowIcon(QIcon::fromTheme(QStringLiteral("configure-shortcuts")));
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout(widget);
|
||||
QFormLayout *formLayout = new QFormLayout(widget);
|
||||
widget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
auto *const mainLayout = new QVBoxLayout(widget);
|
||||
auto *const formLayout = new QFormLayout;
|
||||
formLayout->addRow(
|
||||
QCoreApplication::translate("Plasmoid::ShortcutOptionPage", "Global shortcut"), m_globalShortcutEdit = new QKeySequenceEdit(widget));
|
||||
mainLayout->addLayout(formLayout);
|
||||
widget->setLayout(mainLayout);
|
||||
mainLayout->addStretch(1);
|
||||
addPlasmoidSpecificNote(mainLayout, widget);
|
||||
return widget;
|
||||
}
|
||||
|
||||
|
@ -86,6 +103,13 @@ void AppearanceOptionPage::reset()
|
|||
ui()->brightTextColorsCheckBox->setChecked(config.readEntry<bool>("brightColors", false));
|
||||
}
|
||||
|
||||
QWidget *AppearanceOptionPage::setupWidget()
|
||||
{
|
||||
auto *const widget = AppearanceOptionPageBase::setupWidget();
|
||||
addPlasmoidSpecificNote(ui()->verticalLayout, widget);
|
||||
return widget;
|
||||
}
|
||||
|
||||
QtGui::SettingsDialog *setupSettingsDialog(SyncthingApplet &applet)
|
||||
{
|
||||
// setup categories
|
||||
|
|
|
@ -27,6 +27,7 @@ public:
|
|||
AppearanceOptionPage(SyncthingApplet &applet, QWidget *parentWidget = nullptr);
|
||||
|
||||
private:
|
||||
DECLARE_SETUP_WIDGETS
|
||||
SyncthingApplet *m_applet;
|
||||
END_DECLARE_OPTION_PAGE
|
||||
|
||||
|
|
|
@ -135,55 +135,58 @@
|
|||
<translation>Erscheinungsbild</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="16"/>
|
||||
<source>The following settings are specific to the current instance of the Plasmoid.</source>
|
||||
<translation>Die folgenden Einstellungen sind spezifisch für die aktuelle Instanz des Plasmoids.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="32"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="18"/>
|
||||
<source>Size of full representation</source>
|
||||
<translation>Minimale Größe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="82"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="68"/>
|
||||
<source> x </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="108"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="94"/>
|
||||
<source> grid units</source>
|
||||
<translation> Rastereinheiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="126"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="112"/>
|
||||
<source>Note that the size is ignored when the Plasmoid is displayed on the desktop, in full screen mode or as entry of the system tray Plasmoid.</source>
|
||||
<translation>Die eingestellte Größe wird ignoriert, wenn das Plasmoid am Desktop, im Vollbild oder innerhalb des Systemtray-Plasmoids dargestellt wird.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="39"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="25"/>
|
||||
<source>Colors</source>
|
||||
<translation>Farben</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="46"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="32"/>
|
||||
<source>Bright custom text colors (use for dark color scheme)</source>
|
||||
<translation>Helle benutzerdefinierte Schriftfarben (für dunkles Farbschema gedacht)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Plasmoid::Settings</name>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="28"/>
|
||||
<source>The settings on this page are specific to the current instance of the Plasmoid.</source>
|
||||
<translation>Die Einstellungen auf dieser Seite sind spezifisch für die aktuelle Instanz des Plasmoids.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Plasmoid::SettingsDialog</name>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="96"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="120"/>
|
||||
<source>Plasmoid</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="105"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="129"/>
|
||||
<source>Web view</source>
|
||||
<translation>Weboberfläche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="115"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="139"/>
|
||||
<source>Extras</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -191,12 +194,12 @@
|
|||
<context>
|
||||
<name>Plasmoid::ShortcutOptionPage</name>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="50"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="65"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Kurzbefehle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="55"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="71"/>
|
||||
<source>Global shortcut</source>
|
||||
<translation>Globales Tastenkürzel</translation>
|
||||
</message>
|
||||
|
|
|
@ -135,55 +135,58 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="16"/>
|
||||
<source>The following settings are specific to the current instance of the Plasmoid.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="32"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="18"/>
|
||||
<source>Size of full representation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="82"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="68"/>
|
||||
<source> x </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="108"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="94"/>
|
||||
<source> grid units</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="126"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="112"/>
|
||||
<source>Note that the size is ignored when the Plasmoid is displayed on the desktop, in full screen mode or as entry of the system tray Plasmoid.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="39"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="25"/>
|
||||
<source>Colors</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="46"/>
|
||||
<location filename="../lib/appearanceoptionpage.ui" line="32"/>
|
||||
<source>Bright custom text colors (use for dark color scheme)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Plasmoid::Settings</name>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="28"/>
|
||||
<source>The settings on this page are specific to the current instance of the Plasmoid.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Plasmoid::SettingsDialog</name>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="96"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="120"/>
|
||||
<source>Plasmoid</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="105"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="129"/>
|
||||
<source>Web view</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="115"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="139"/>
|
||||
<source>Extras</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -191,12 +194,12 @@
|
|||
<context>
|
||||
<name>Plasmoid::ShortcutOptionPage</name>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="50"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="65"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../lib/settingsdialog.cpp" line="55"/>
|
||||
<location filename="../lib/settingsdialog.cpp" line="71"/>
|
||||
<source>Global shortcut</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in New Issue