Logo Search packages:      
Sourcecode: kcm-qt-graphicssystem version File versions  Download package

Module::Module ( QWidget *  parent,
const QVariantList &  args = QVariantList() 
)

Constructor.

Parameters:
parentParent widget of the module
argsArguments for the module

Definition at line 36 of file Module.cpp.

References changed(), scriptFile, and ui.

                                                        :
    KCModule(KcmQtGraphicsSystemFactory::componentData(), parent, args),
    ui(new Ui::Module),
    probedButton(0)
{
    KAboutData *about = new KAboutData("qt-graphicssystem", 0,
                                       ki18n("Qt Graphics System"),
                                       global_s_versionStringFull,
                                       ki18n("Configure the Qt Graphics System"),
                                       KAboutData::License_GPL_V3,
                                       ki18n("Copyright 2010 Harald Sitter"),
                                       KLocalizedString(), QByteArray(),
                                       "apachelogger@ubuntu.com");

    about->addAuthor(ki18n("Harald Sitter"), ki18n("Mad Man"), "apachelogger@ubuntu.com");
    setAboutData(about);

    ui->setupUi(this);
    scriptFile = new QFile(componentData().dirs()->localkdedir() + "env/" + "qt-graphicssystem.sh");

    connect(ui->nativeButton, SIGNAL(clicked()), SLOT(changed()));
    connect(ui->rasterButton, SIGNAL(clicked()), SLOT(changed()));
    connect(ui->openglButton, SIGNAL(clicked()), SLOT(changed()));

    ui->infoIconLabel->hide();
    ui->infoLabel->hide();

    // We have no help so remove the button from the buttons.
    setButtons(buttons() ^ KCModule::Help);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index