diff options
Diffstat (limited to 'kexi/plugins/reports/kexireportfactory.cpp')
-rw-r--r-- | kexi/plugins/reports/kexireportfactory.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kexi/plugins/reports/kexireportfactory.cpp b/kexi/plugins/reports/kexireportfactory.cpp index 0ac782c4..d863bc9f 100644 --- a/kexi/plugins/reports/kexireportfactory.cpp +++ b/kexi/plugins/reports/kexireportfactory.cpp @@ -16,8 +16,8 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ -#include <qpopupmenu.h> -#include <qvaluevector.h> +#include <tqpopupmenu.h> +#include <tqvaluevector.h> #include <kgenericfactory.h> #include <klocale.h> @@ -33,8 +33,8 @@ #include "reportwidgets.h" #include "kexireportfactory.h" -KexiReportFactory::KexiReportFactory(QObject *parent, const char *name, const QStringList &) - : KFormDesigner::WidgetFactory(parent, name) +KexiReportFactory::KexiReportFactory(TQObject *tqparent, const char *name, const TQStringList &) + : KFormDesigner::WidgetFactory(tqparent, name) { KFormDesigner::WidgetInfo *wView = new KFormDesigner::WidgetInfo(this); wView->setPixmap("report"); @@ -86,20 +86,20 @@ KexiReportFactory::~KexiReportFactory() { } -QString +TQString KexiReportFactory::name() { return "kexireportwidgets"; } -QWidget* -KexiReportFactory::createWidget(const QCString &c, QWidget *p, const char *n, +TQWidget* +KexiReportFactory::createWidget(const TQCString &c, TQWidget *p, const char *n, KFormDesigner::Container *container, int options) { Q_UNUSED(options); kexipluginsdbg << "KexiReportFactory::create() " << this << endl; - QString text( container->form()->library()->textForWidgetName(n, c) ); + TQString text( container->form()->library()->textForWidgetName(n, c) ); if(c == "Label") return new Label(text, p, n); @@ -114,56 +114,56 @@ KexiReportFactory::createWidget(const QCString &c, QWidget *p, const char *n, } bool -KexiReportFactory::createMenuActions(const QCString &classname, QWidget *w, - QPopupMenu *menu, KFormDesigner::Container *container) +KexiReportFactory::createMenuActions(const TQCString &classname, TQWidget *w, + TQPopupMenu *menu, KFormDesigner::Container *container) { Q_UNUSED(w); Q_UNUSED(container); if(classname == "Label") { /*! @todo use KAction */ - menu->insertItem(SmallIconSet("edit"), i18n("Edit Rich Text"), this, SLOT(editText())); + menu->insertItem(SmallIconSet("edit"), i18n("Edit Rich Text"), this, TQT_SLOT(editText())); return true; } return false; } bool -KexiReportFactory::startEditing(const QCString &c, QWidget *w, KFormDesigner::Container *container) +KexiReportFactory::startEditing(const TQCString &c, TQWidget *w, KFormDesigner::Container *container) { m_container = container; if(c == "Label") { - QLabel *label = static_cast<QLabel*>(w); + TQLabel *label = static_cast<TQLabel*>(w); if(label->textFormat() == RichText) { m_widget = w; editText(); } else - createEditor(c, label->text(), label, container, label->geometry(), label->alignment()); + createEditor(c, label->text(), label, container, label->tqgeometry(), label->tqalignment()); return true; } return false; } bool -KexiReportFactory::isPropertyVisibleInternal(const QCString &classname, QWidget *w, const QCString &property, bool isTopLevel) +KexiReportFactory::isPropertyVisibleInternal(const TQCString &classname, TQWidget *w, const TQCString &property, bool isTopLevel) { if(classname == "Label") { if(property == "pixmap") return false; } else if(classname == "PicLabel") { - if((property == "text") || (property == "indent") || (property == "textFormat") || (property == "font") || (property == "alignment")) + if((property == "text") || (property == "indent") || (property == "textFormat") || (property == "font") || (property == "tqalignment")) return false; } return WidgetFactory::isPropertyVisibleInternal(classname, w, property, isTopLevel); } -QValueList<QCString> -KexiReportFactory::autoSaveProperties(const QCString &classname) +TQValueList<TQCString> +KexiReportFactory::autoSaveProperties(const TQCString &classname) { - QValueList<QCString> l; + TQValueList<TQCString> l; if(classname == "Label") l << "text"; @@ -175,23 +175,23 @@ KexiReportFactory::autoSaveProperties(const QCString &classname) /* void -KexiReportFactory::changeText(const QString &text) +KexiReportFactory::changeText(const TQString &text) { - QWidget *w = WidgetFactory::m_widget; + TQWidget *w = WidgetFactory::m_widget; changeProperty("text", text, m_container); - int width = w->sizeHint().width(); + int width = w->tqsizeHint().width(); if(w->width() < width) w->resize(width, w->height() ); } void -KexiReportFactory::resizeEditor(QWidget *widget, const QCString &) +KexiReportFactory::resizeEditor(TQWidget *widget, const TQCString &) { - QSize s = widget->size(); - QPoint p = widget->pos(); - QRect r; + TQSize s = widget->size(); + TQPoint p = widget->pos(); + TQRect r; m_editor->resize(s); m_editor->move(p); @@ -200,11 +200,11 @@ KexiReportFactory::resizeEditor(QWidget *widget, const QCString &) void KexiReportFactory::editText() { - QCString classname = m_widget->className(); - QString text; + TQCString classname = m_widget->className(); + TQString text; if(classname == "Label") - text = ((QLabel*)m_widget)->text(); + text = ((TQLabel*)m_widget)->text(); if(editRichText(m_widget, text)) { changeProperty("textFormat", "RichText", m_container->form()); @@ -212,11 +212,11 @@ KexiReportFactory::editText() } if(classname == "Label") - m_widget->resize(m_widget->sizeHint()); + m_widget->resize(m_widget->tqsizeHint()); } bool -KexiReportFactory::previewWidget(const QCString &, QWidget *, KFormDesigner::Container *) +KexiReportFactory::previewWidget(const TQCString &, TQWidget *, KFormDesigner::Container *) { return false; } |