summaryrefslogtreecommitdiff
path: root/libopie
Unidiff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/colordialog.cpp56
-rw-r--r--libopie/colordialog.h22
-rw-r--r--libopie/colorpopupmenu.cpp2
3 files changed, 40 insertions, 40 deletions
diff --git a/libopie/colordialog.cpp b/libopie/colordialog.cpp
index 6d72ff6..684d6ea 100644
--- a/libopie/colordialog.cpp
+++ b/libopie/colordialog.cpp
@@ -3,3 +3,3 @@
3** 3**
4** Implementation of QColorDialog class 4** Implementation of OColorDialog class
5** 5**
@@ -478,3 +478,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
478 hEd->setValidator( val360 ); 478 hEd->setValidator( val360 );
479 QLabel *l = new QLabel( hEd, QColorDialog::tr("Hue:"), this ); 479 QLabel *l = new QLabel( hEd, OColorDialog::tr("Hue:"), this );
480 l->setAlignment( AlignRight|AlignVCenter ); 480 l->setAlignment( AlignRight|AlignVCenter );
@@ -485,3 +485,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
485 sEd->setValidator( val256 ); 485 sEd->setValidator( val256 );
486 l = new QLabel( sEd, QColorDialog::tr("Sat:"), this ); 486 l = new QLabel( sEd, OColorDialog::tr("Sat:"), this );
487 l->setAlignment( AlignRight|AlignVCenter ); 487 l->setAlignment( AlignRight|AlignVCenter );
@@ -492,3 +492,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
492 vEd->setValidator( val256 ); 492 vEd->setValidator( val256 );
493 l = new QLabel( vEd, QColorDialog::tr("Val:"), this ); 493 l = new QLabel( vEd, OColorDialog::tr("Val:"), this );
494 l->setAlignment( AlignRight|AlignVCenter ); 494 l->setAlignment( AlignRight|AlignVCenter );
@@ -499,3 +499,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
499 rEd->setValidator( val256 ); 499 rEd->setValidator( val256 );
500 l = new QLabel( rEd, QColorDialog::tr("Red:"), this ); 500 l = new QLabel( rEd, OColorDialog::tr("Red:"), this );
501 l->setAlignment( AlignRight|AlignVCenter ); 501 l->setAlignment( AlignRight|AlignVCenter );
@@ -506,3 +506,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
506 gEd->setValidator( val256 ); 506 gEd->setValidator( val256 );
507 l = new QLabel( gEd, QColorDialog::tr("Green:"), this ); 507 l = new QLabel( gEd, OColorDialog::tr("Green:"), this );
508 l->setAlignment( AlignRight|AlignVCenter ); 508 l->setAlignment( AlignRight|AlignVCenter );
@@ -513,3 +513,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
513 bEd->setValidator( val256 ); 513 bEd->setValidator( val256 );
514 l = new QLabel( bEd, QColorDialog::tr("Blue:"), this ); 514 l = new QLabel( bEd, OColorDialog::tr("Blue:"), this );
515 l->setAlignment( AlignRight|AlignVCenter ); 515 l->setAlignment( AlignRight|AlignVCenter );
@@ -520,3 +520,3 @@ QColorShower::QColorShower( QWidget *parent, const char *name )
520 alphaEd->setValidator( val256 ); 520 alphaEd->setValidator( val256 );
521 alphaLab = new QLabel( alphaEd, QColorDialog::tr("Alpha channel:"), this ); 521 alphaLab = new QLabel( alphaEd, OColorDialog::tr("Alpha channel:"), this );
522 alphaLab->setAlignment( AlignRight|AlignVCenter ); 522 alphaLab->setAlignment( AlignRight|AlignVCenter );
@@ -609,3 +609,3 @@ void QColorShower::setHsv( int h, int s, int v )
609 609
610class QColorDialogPrivate : public QObject 610class OColorDialogPrivate : public QObject
611{ 611{
@@ -613,3 +613,3 @@ Q_OBJECT
613public: 613public:
614 QColorDialogPrivate( QColorDialog *p ); 614 OColorDialogPrivate( OColorDialog *p );
615 QRgb currentColor() const { return cs->currentColor(); } 615 QRgb currentColor() const { return cs->currentColor(); }
@@ -631,3 +631,3 @@ private:
631//sets all widgets to display h,s,v 631//sets all widgets to display h,s,v
632void QColorDialogPrivate::newHsv( int h, int s, int v ) 632void OColorDialogPrivate::newHsv( int h, int s, int v )
633{ 633{
@@ -639,3 +639,3 @@ void QColorDialogPrivate::newHsv( int h, int s, int v )
639//sets all widgets to display rgb 639//sets all widgets to display rgb
640void QColorDialogPrivate::setCurrentColor( QRgb rgb ) 640void OColorDialogPrivate::setCurrentColor( QRgb rgb )
641{ 641{
@@ -646,3 +646,3 @@ void QColorDialogPrivate::setCurrentColor( QRgb rgb )
646//sets all widgets exept cs to display rgb 646//sets all widgets exept cs to display rgb
647void QColorDialogPrivate::newColorTypedIn( QRgb rgb ) 647void OColorDialogPrivate::newColorTypedIn( QRgb rgb )
648{ 648{
@@ -654,3 +654,3 @@ void QColorDialogPrivate::newColorTypedIn( QRgb rgb )
654 654
655QColorDialogPrivate::QColorDialogPrivate( QColorDialog *dialog ) : 655OColorDialogPrivate::OColorDialogPrivate( OColorDialog *dialog ) :
656 QObject(dialog) 656 QObject(dialog)
@@ -687,4 +687,4 @@ QColorDialogPrivate::QColorDialogPrivate( QColorDialog *dialog ) :
687/*! 687/*!
688 \class QColorDialog qcolordialog.h 688 \class OColorDialog OColorDialog.h
689 \brief The QColorDialog class provides a dialog widget for specifying colors. 689 \brief The OColorDialog class provides a dialog widget for specifying colors.
690 \ingroup dialogs 690 \ingroup dialogs
@@ -714,6 +714,6 @@ QColorDialogPrivate::QColorDialogPrivate( QColorDialog *dialog ) :
714 714
715QColorDialog::QColorDialog(QWidget* parent, const char* name, bool modal) : 715OColorDialog::OColorDialog(QWidget* parent, const char* name, bool modal) :
716 QDialog(parent, name, modal ) 716 QDialog(parent, name, modal )
717{ 717{
718 d = new QColorDialogPrivate( this ); 718 d = new OColorDialogPrivate( this );
719} 719}
@@ -728,3 +728,3 @@ QColorDialog::QColorDialog(QWidget* parent, const char* name, bool modal) :
728 728
729QColor QColorDialog::getColor( QColor initial, QWidget *parent, 729QColor OColorDialog::getColor( QColor initial, QWidget *parent,
730 const char *name ) 730 const char *name )
@@ -732,3 +732,3 @@ QColor QColorDialog::getColor( QColor initial, QWidget *parent,
732 int allocContext = QColor::enterAllocContext(); 732 int allocContext = QColor::enterAllocContext();
733 QColorDialog *dlg = new QColorDialog( parent, name, TRUE ); //modal 733 OColorDialog *dlg = new OColorDialog( parent, name, TRUE ); //modal
734 if ( parent && parent->icon() && !parent->icon()->isNull() ) 734 if ( parent && parent->icon() && !parent->icon()->isNull() )
@@ -738,3 +738,3 @@ QColor QColorDialog::getColor( QColor initial, QWidget *parent,
738 738
739 dlg->setCaption( QColorDialog::tr( "Select color" ) ); 739 dlg->setCaption( OColorDialog::tr( "Select color" ) );
740 dlg->setColor( initial ); 740 dlg->setColor( initial );
@@ -765,3 +765,3 @@ QColor QColorDialog::getColor( QColor initial, QWidget *parent,
765 765
766QRgb QColorDialog::getRgba( QRgb initial, bool *ok, 766QRgb OColorDialog::getRgba( QRgb initial, bool *ok,
767 QWidget *parent, const char* name ) 767 QWidget *parent, const char* name )
@@ -769,3 +769,3 @@ QRgb QColorDialog::getRgba( QRgb initial, bool *ok,
769 int allocContext = QColor::enterAllocContext(); 769 int allocContext = QColor::enterAllocContext();
770 QColorDialog *dlg = new QColorDialog( parent, name, TRUE ); //modal 770 OColorDialog *dlg = new OColorDialog( parent, name, TRUE ); //modal
771 dlg->setColor( initial ); 771 dlg->setColor( initial );
@@ -799,3 +799,3 @@ QRgb QColorDialog::getRgba( QRgb initial, bool *ok,
799 799
800QColor QColorDialog::color() const 800QColor OColorDialog::color() const
801{ 801{
@@ -809,3 +809,3 @@ QColor QColorDialog::color() const
809 809
810QColorDialog::~QColorDialog() 810OColorDialog::~OColorDialog()
811{ 811{
@@ -821,3 +821,3 @@ QColorDialog::~QColorDialog()
821 821
822void QColorDialog::setColor( QColor c ) 822void OColorDialog::setColor( QColor c )
823{ 823{
@@ -834,3 +834,3 @@ void QColorDialog::setColor( QColor c )
834 834
835void QColorDialog::setSelectedAlpha( int a ) 835void OColorDialog::setSelectedAlpha( int a )
836{ 836{
@@ -845,3 +845,3 @@ void QColorDialog::setSelectedAlpha( int a )
845 845
846int QColorDialog::selectedAlpha() const 846int OColorDialog::selectedAlpha() const
847{ 847{
diff --git a/libopie/colordialog.h b/libopie/colordialog.h
index a2d4d30..474bc61 100644
--- a/libopie/colordialog.h
+++ b/libopie/colordialog.h
@@ -3,3 +3,3 @@
3** 3**
4** Definition of QColorDialog class 4** Definition of OColorDialog class
5** 5**
@@ -37,4 +37,4 @@
37 37
38#ifndef QCOLORDIALOG_H 38#ifndef OColorDialog_H
39#define QCOLORDIALOG_H 39#define OColorDialog_H
40 40
@@ -44,5 +44,5 @@
44 44
45class QColorDialogPrivate; 45class OColorDialogPrivate;
46 46
47class Q_EXPORT QColorDialog : public QDialog 47class Q_EXPORT OColorDialog : public QDialog
48{ 48{
@@ -56,5 +56,5 @@ public:
56private: 56private:
57 ~QColorDialog(); 57 ~OColorDialog();
58 58
59 QColorDialog( QWidget* parent=0, const char* name=0, bool modal=FALSE ); 59 OColorDialog( QWidget* parent=0, const char* name=0, bool modal=FALSE );
60 void setColor( QColor ); // ### 3.0: make const QColor& 60 void setColor( QColor ); // ### 3.0: make const QColor&
@@ -66,4 +66,4 @@ private:
66private: 66private:
67 QColorDialogPrivate *d; 67 OColorDialogPrivate *d;
68 friend class QColorDialogPrivate; 68 friend class OColorDialogPrivate;
69 69
@@ -71,4 +71,4 @@ private: // Disabled copy constructor and operator=
71#if defined(Q_DISABLE_COPY) 71#if defined(Q_DISABLE_COPY)
72 QColorDialog( const QColorDialog & ); 72 OColorDialog( const OColorDialog & );
73 QColorDialog& operator=( const QColorDialog & ); 73 OColorDialog& operator=( const OColorDialog & );
74#endif 74#endif
diff --git a/libopie/colorpopupmenu.cpp b/libopie/colorpopupmenu.cpp
index 35e91f4..9b50a8b 100644
--- a/libopie/colorpopupmenu.cpp
+++ b/libopie/colorpopupmenu.cpp
@@ -160,3 +160,3 @@ void ColorPopupMenu::moreColorClicked()
160{ 160{
161 QColor color = QColorDialog::getColor( m_color ); 161 QColor color = OColorDialog::getColor( m_color );
162 m_color = color; 162 m_color = color;