[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi
From:       Christian Nitschkowski <segfault_ii () web ! de>
Date:       2005-02-01 16:43:16
Message-ID: 20050201164316.1B11B1C858 () office ! kde ! org
[Download RAW message or body]

CVS commit by segfault: 

Renamed MyPicLabel to KexiPictureLabel.


  M +1 -1      data/kexiformpartinstui.rc   1.16
  M +9 -9      formeditor/factories/stdwidgetfactory.cpp   1.58
  M +3 -3      formeditor/factories/stdwidgetfactory.h   1.24


--- koffice/kexi/data/kexiformpartinstui.rc  #1.15:1.16
@@ -39,5 +39,5 @@
    <Action name="library_widget_KexiSubForm"/>
    <Action name="library_widget_KexiLabel"/>
-   <Action name="library_widget_MyPicLabel"/>
+   <Action name="library_widget_KexiPictureLabel"/>
    <Action name="library_widget_KexiDBLineEdit"/>
    <Action name="library_widget_KIntSpinBox"/>

--- koffice/kexi/formeditor/factories/stdwidgetfactory.cpp  #1.57:1.58
@@ -55,5 +55,5 @@
 
 // Some widgets subclass to allow event filtering and some other things
-MyPicLabel::MyPicLabel(const QPixmap &pix, QWidget *parent, const char *name)
+KexiPictureLabel::KexiPictureLabel(const QPixmap &pix, QWidget *parent, const char \
*name)  : QLabel(parent, name)
 {
@@ -63,5 +63,5 @@ MyPicLabel::MyPicLabel(const QPixmap &pi
 
 bool
-MyPicLabel::setProperty(const char *name, const QVariant &value)
+KexiPictureLabel::setProperty(const char *name, const QVariant &value)
 {
         if(QString(name) == "pixmap")
@@ -132,9 +132,9 @@ StdWidgetFactory::StdWidgetFactory(QObje
         KFormDesigner::WidgetInfo *wPixLabel = new KFormDesigner::WidgetInfo(this);
         wPixLabel->setPixmap("pixmaplabel");
-        wPixLabel->setClassName("MyPicLabel");
+        wPixLabel->setClassName("KexiPictureLabel");
         wPixLabel->setName(i18n("Picture Label"));
         wPixLabel->addAlternateClassName("QLabel");
-        wPixLabel->setSavingName("MyPicLabel");
-        wPixLabel->setNamePrefix(i18n("Widget name (see above)", "MyPicLabel"));
+        wPixLabel->setSavingName("KexiPictureLabel");
+        wPixLabel->setNamePrefix(i18n("Widget name (see above)", "PictureLabel"));
         wPixLabel->setDescription(i18n("A widget to display pixmaps"));
         m_classes.append(wPixLabel);
@@ -305,6 +305,6 @@ StdWidgetFactory::create(const QCString 
         if(c == "QLabel")
                 w = new QLabel(/*i18n("Label")*/text, p, n);
-        else if(c == "MyPicLabel")
-                w = new MyPicLabel(DesktopIcon("image"), p, n);
+        else if(c == "KexiPictureLabel")
+                w = new KexiPictureLabel(DesktopIcon("image"), p, n);
 
         else if(c == "KLineEdit")
@@ -756,5 +756,5 @@ StdWidgetFactory::showProperty(const QSt
                 return Spring::showProperty(property);
         }
-        else if(classname == "MyPicLabel")
+        else if(classname == "KexiPictureLabel")
         {
                 if((property == "text") || (property == "indent") || (property == \
"textFormat") || (property == "font") || (property == "alignment")) @@ -783,5 +783,5 \
@@ StdWidgetFactory::autoSaveProperties(con  if(classname == "KPushButton")
                 l << "text";
-        else if(classname == "MyPicLabel")
+        else if(classname == "KexiPictureLabel")
                 l << "pixmap";
         else if(classname == "KComboBox")

--- koffice/kexi/formeditor/factories/stdwidgetfactory.h  #1.23:1.24
@@ -26,11 +26,11 @@
 #include "container.h"
 
-class KFORMEDITOR_EXPORT MyPicLabel : public QLabel
+class KFORMEDITOR_EXPORT KexiPictureLabel : public QLabel
 {
         Q_OBJECT
 
         public:
-                MyPicLabel(const QPixmap &pix, QWidget *parent, const char *name);
-                ~MyPicLabel(){;}
+                KexiPictureLabel(const QPixmap &pix, QWidget *parent, const char \
*name); +                ~KexiPictureLabel(){;}
 
                 virtual bool setProperty(const char *name, const QVariant &value);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic