1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
/*
SPDX-FileCopyrightText: 2008 Urs Wolfer <uwolfer@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "rdppreferences.h"
#include "remoteviewfactory.h"
#include "settings.h"
#include "ui_rdppreferences.h"
K_PLUGIN_CLASS(RdpPreferences)
RdpPreferences::RdpPreferences(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
{
Ui::RdpPreferences rdpUi;
rdpUi.setupUi(this);
// would need a lot of code duplication. find a solution, but it's not
// that important because you will not change this configuration each day...
// see rdp/rdphostpreferences.cpp
rdpUi.kcfg_Resolution->hide();
rdpUi.resolutionDummyLabel->hide();
rdpUi.kcfg_Height->setEnabled(true);
rdpUi.kcfg_Width->setEnabled(true);
rdpUi.heightLabel->setEnabled(true);
rdpUi.widthLabel->setEnabled(true);
rdpUi.browseMediaButton->hide();
addConfig(Settings::self(), this);
}
RdpPreferences::~RdpPreferences()
{
}
void RdpPreferences::load()
{
KCModule::load();
}
void RdpPreferences::save()
{
KCModule::save();
}
#include "rdppreferences.moc"
|