• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • sources
  • kde-4.12
  • kdeedu
  • parley
  • src
  • settings
viewoptions.cpp
Go to the documentation of this file.
1 /***************************************************************************
2 
3  view options for Parley
4 
5  -----------------------------------------------------------------------
6 
7  begin : Thu Mar 31 2005
8 
9  copyright :(C) 2005, 2007 Peter Hedlund <peter.hedlund@kdemail.net>
10 
11  -----------------------------------------------------------------------
12 
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #include "viewoptions.h"
25 
26 #include <QCheckBox>
27 
28 ViewOptions::ViewOptions(QWidget* parent) : QWidget(parent)
29 {
30  setupUi(this);
31  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor7, SLOT(setEnabled(bool)));
32  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor6, SLOT(setEnabled(bool)));
33  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor5, SLOT(setEnabled(bool)));
34  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor4, SLOT(setEnabled(bool)));
35  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor3, SLOT(setEnabled(bool)));
36  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor2, SLOT(setEnabled(bool)));
37  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor1, SLOT(setEnabled(bool)));
38  connect(kcfg_UseGradeColors, SIGNAL(toggled(bool)), kcfg_GradeColor0, SLOT(setEnabled(bool)));
39 
40  kcfg_GradeColor0->setEnabled(kcfg_UseGradeColors->isChecked());
41  kcfg_GradeColor1->setEnabled(kcfg_UseGradeColors->isChecked());
42  kcfg_GradeColor2->setEnabled(kcfg_UseGradeColors->isChecked());
43  kcfg_GradeColor3->setEnabled(kcfg_UseGradeColors->isChecked());
44  kcfg_GradeColor4->setEnabled(kcfg_UseGradeColors->isChecked());
45  kcfg_GradeColor5->setEnabled(kcfg_UseGradeColors->isChecked());
46  kcfg_GradeColor6->setEnabled(kcfg_UseGradeColors->isChecked());
47  kcfg_GradeColor7->setEnabled(kcfg_UseGradeColors->isChecked());
48 }
49 
50 #include "viewoptions.moc"
QWidget
ViewOptions::ViewOptions
ViewOptions(QWidget *parent=0)
Definition: viewoptions.cpp:28
viewoptions.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal