-rw-r--r-- | libopie/colordialog.cpp | 56 | ||||
-rw-r--r-- | libopie/colordialog.h | 22 | ||||
-rw-r--r-- | libopie/colorpopupmenu.cpp | 2 |
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 | ||
610 | class QColorDialogPrivate : public QObject | 610 | class OColorDialogPrivate : public QObject |
611 | { | 611 | { |
@@ -613,3 +613,3 @@ Q_OBJECT | |||
613 | public: | 613 | public: |
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 |
632 | void QColorDialogPrivate::newHsv( int h, int s, int v ) | 632 | void 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 |
640 | void QColorDialogPrivate::setCurrentColor( QRgb rgb ) | 640 | void 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 |
647 | void QColorDialogPrivate::newColorTypedIn( QRgb rgb ) | 647 | void OColorDialogPrivate::newColorTypedIn( QRgb rgb ) |
648 | { | 648 | { |
@@ -654,3 +654,3 @@ void QColorDialogPrivate::newColorTypedIn( QRgb rgb ) | |||
654 | 654 | ||
655 | QColorDialogPrivate::QColorDialogPrivate( QColorDialog *dialog ) : | 655 | OColorDialogPrivate::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 | ||
715 | QColorDialog::QColorDialog(QWidget* parent, const char* name, bool modal) : | 715 | OColorDialog::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 | ||
729 | QColor QColorDialog::getColor( QColor initial, QWidget *parent, | 729 | QColor 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 | ||
766 | QRgb QColorDialog::getRgba( QRgb initial, bool *ok, | 766 | QRgb 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 | ||
800 | QColor QColorDialog::color() const | 800 | QColor OColorDialog::color() const |
801 | { | 801 | { |
@@ -809,3 +809,3 @@ QColor QColorDialog::color() const | |||
809 | 809 | ||
810 | QColorDialog::~QColorDialog() | 810 | OColorDialog::~OColorDialog() |
811 | { | 811 | { |
@@ -821,3 +821,3 @@ QColorDialog::~QColorDialog() | |||
821 | 821 | ||
822 | void QColorDialog::setColor( QColor c ) | 822 | void OColorDialog::setColor( QColor c ) |
823 | { | 823 | { |
@@ -834,3 +834,3 @@ void QColorDialog::setColor( QColor c ) | |||
834 | 834 | ||
835 | void QColorDialog::setSelectedAlpha( int a ) | 835 | void OColorDialog::setSelectedAlpha( int a ) |
836 | { | 836 | { |
@@ -845,3 +845,3 @@ void QColorDialog::setSelectedAlpha( int a ) | |||
845 | 845 | ||
846 | int QColorDialog::selectedAlpha() const | 846 | int 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 | ||
45 | class QColorDialogPrivate; | 45 | class OColorDialogPrivate; |
46 | 46 | ||
47 | class Q_EXPORT QColorDialog : public QDialog | 47 | class Q_EXPORT OColorDialog : public QDialog |
48 | { | 48 | { |
@@ -56,5 +56,5 @@ public: | |||
56 | private: | 56 | private: |
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: | |||
66 | private: | 66 | private: |
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; |