Back to index

kdeartwork  4.3.2
Public Slots | Signals | Public Member Functions | Protected Slots | Private Attributes
PhaseStyleConfig Class Reference

#include <phasestyleconfig.h>

List of all members.

Public Slots

void save ()
void defaults ()


void changed (bool)

Public Member Functions

 PhaseStyleConfig (QWidget *parent)
 ~PhaseStyleConfig ()

Protected Slots

void updateChanged ()

Private Attributes

bool oldgradients
bool oldhighlights

Detailed Description

Definition at line 33 of file phasestyleconfig.h.

Constructor & Destructor Documentation

PhaseStyleConfig::PhaseStyleConfig ( QWidget *  parent)

Definition at line 26 of file phasestyleconfig.cpp.

                                                  : QWidget(parent)


    QSettings settings("phasestyle");
    oldgradients =
        settings.value("/gradients", true).toBool();
    oldhighlights =
        settings.value("/highlights", true).toBool();

    // connections
    connect(gradients, SIGNAL(toggled(bool)),
            this, SLOT(updateChanged()));
    connect(highlights, SIGNAL(toggled(bool)),
            this, SLOT(updateChanged()));

Here is the call graph for this function:

Definition at line 52 of file phasestyleconfig.cpp.


Member Function Documentation

void PhaseStyleConfig::changed ( bool  ) [signal]

Here is the caller graph for this function:

void PhaseStyleConfig::defaults ( ) [slot]

Definition at line 91 of file phasestyleconfig.cpp.

void PhaseStyleConfig::save ( ) [slot]

Definition at line 79 of file phasestyleconfig.cpp.

    QSettings settings("phasestyle");
    settings.setValue("/gradients", gradients->isChecked());
    settings.setValue("/highlights", highlights->isChecked());
void PhaseStyleConfig::updateChanged ( ) [protected, slot]

Definition at line 62 of file phasestyleconfig.cpp.

    bool update = false;

    if ((gradients->isChecked() != oldgradients) ||
        (highlights->isChecked() != oldhighlights)) {
        update = true;

    emit changed(update);

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 51 of file phasestyleconfig.h.

Definition at line 52 of file phasestyleconfig.h.

The documentation for this class was generated from the following files: