summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/polkitqt1-gui-action.cpp126
-rw-r--r--gui/polkitqt1-gui-action.h38
-rw-r--r--gui/polkitqt1-gui-actionbutton.cpp36
-rw-r--r--gui/polkitqt1-gui-actionbutton.h28
-rw-r--r--gui/polkitqt1-gui-actionbutton_p.h14
-rw-r--r--gui/polkitqt1-gui-actionbuttons.cpp14
-rw-r--r--gui/polkitqt1-gui-actionbuttons.h26
-rw-r--r--gui/polkitqt1-gui-actionbuttons_p.h4
8 files changed, 143 insertions, 143 deletions
diff --git a/gui/polkitqt1-gui-action.cpp b/gui/polkitqt1-gui-action.cpp
index 82083d134..d591c7b52 100644
--- a/gui/polkitqt1-gui-action.cpp
+++ b/gui/polkitqt1-gui-action.cpp
@@ -24,9 +24,9 @@
#include "polkitqt1-authority.h"
#include "polkitqt1-subject.h"
-#include <QtCore/QCoreApplication>
+#include <TQtCore/TQCoreApplication>
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Gui
@@ -42,7 +42,7 @@ public:
Action *parent;
- QString actionId;
+ TQString actionId;
Authority::Result pkResult;
qint64 targetPID;
@@ -55,31 +55,31 @@ public:
// states data
bool selfBlockedVisible;
bool selfBlockedEnabled;
- QString selfBlockedText;
- QString selfBlockedWhatsThis;
- QString selfBlockedToolTip;
- QIcon selfBlockedIcon;
+ TQString selfBlockedText;
+ TQString selfBlockedWhatsThis;
+ TQString selfBlockedToolTip;
+ TQIcon selfBlockedIcon;
bool noVisible;
bool noEnabled;
- QString noText;
- QString noWhatsThis;
- QString noToolTip;
- QIcon noIcon;
+ TQString noText;
+ TQString noWhatsThis;
+ TQString noToolTip;
+ TQIcon noIcon;
bool authVisible;
bool authEnabled;
- QString authText;
- QString authWhatsThis;
- QString authToolTip;
- QIcon authIcon;
+ TQString authText;
+ TQString authWhatsThis;
+ TQString authToolTip;
+ TQIcon authIcon;
bool yesVisible;
bool yesEnabled;
- QString yesText;
- QString yesWhatsThis;
- QString yesToolTip;
- QIcon yesIcon;
+ TQString yesText;
+ TQString yesWhatsThis;
+ TQString yesToolTip;
+ TQIcon yesIcon;
};
Action::Private::Private(Action *p)
@@ -102,8 +102,8 @@ Action::Private::Private(Action *p)
yesEnabled = true;
}
-Action::Action(const QString &actionId, QObject *parent)
- : QAction(parent)
+Action::Action(const TQString &actionId, TQObject *parent)
+ : TQAction(parent)
, d(new Private(this))
{
// this must be called AFTER the values initialization
@@ -154,7 +154,7 @@ void Action::setChecked(bool checked)
// We store this as initiallyChecked
// to be able to undo changes in case the auth fails
d->initiallyChecked = checked;
- QAction::setChecked(checked);
+ TQAction::setChecked(checked);
}
void Action::Private::updateAction()
@@ -167,43 +167,43 @@ void Action::Private::updateAction()
default:
case Authority::Unknown:
case Authority::No:
- qobject_cast<QAction *>(parent)->setVisible(noVisible);
- qobject_cast<QAction *>(parent)->setEnabled(noEnabled);
- qobject_cast<QAction *>(parent)->setText(noText);
+ qobject_cast<TQAction *>(parent)->setVisible(noVisible);
+ qobject_cast<TQAction *>(parent)->setEnabled(noEnabled);
+ qobject_cast<TQAction *>(parent)->setText(noText);
if (!noWhatsThis.isNull()) {
- qobject_cast<QAction *>(parent)->setWhatsThis(noWhatsThis);
+ qobject_cast<TQAction *>(parent)->setWhatsThis(noWhatsThis);
}
if (!noToolTip.isNull()) {
- qobject_cast<QAction *>(parent)->setToolTip(noToolTip);
+ qobject_cast<TQAction *>(parent)->setToolTip(noToolTip);
}
- qobject_cast<QAction *>(parent)->setIcon(noIcon);
+ qobject_cast<TQAction *>(parent)->setIcon(noIcon);
break;
case Authority::Challenge:
- qobject_cast<QAction *>(parent)->setVisible(authVisible);
- qobject_cast<QAction *>(parent)->setEnabled(authEnabled);
- qobject_cast<QAction *>(parent)->setText(authText);
+ qobject_cast<TQAction *>(parent)->setVisible(authVisible);
+ qobject_cast<TQAction *>(parent)->setEnabled(authEnabled);
+ qobject_cast<TQAction *>(parent)->setText(authText);
if (!authWhatsThis.isNull()) {
- qobject_cast<QAction *>(parent)->setWhatsThis(authWhatsThis);
+ qobject_cast<TQAction *>(parent)->setWhatsThis(authWhatsThis);
}
if (!authToolTip.isNull()) {
- qobject_cast<QAction *>(parent)->setToolTip(authToolTip);
+ qobject_cast<TQAction *>(parent)->setToolTip(authToolTip);
}
- qobject_cast<QAction *>(parent)->setIcon(authIcon);
+ qobject_cast<TQAction *>(parent)->setIcon(authIcon);
break;
case Authority::Yes:
- qobject_cast<QAction *>(parent)->setVisible(yesVisible);
- qobject_cast<QAction *>(parent)->setEnabled(yesEnabled);
- qobject_cast<QAction *>(parent)->setText(yesText);
+ qobject_cast<TQAction *>(parent)->setVisible(yesVisible);
+ qobject_cast<TQAction *>(parent)->setEnabled(yesEnabled);
+ qobject_cast<TQAction *>(parent)->setText(yesText);
if (!yesWhatsThis.isNull()) {
- qobject_cast<QAction *>(parent)->setWhatsThis(yesWhatsThis);
+ qobject_cast<TQAction *>(parent)->setWhatsThis(yesWhatsThis);
}
if (!yesToolTip.isNull()) {
- qobject_cast<QAction *>(parent)->setToolTip(yesToolTip);
+ qobject_cast<TQAction *>(parent)->setToolTip(yesToolTip);
}
- qobject_cast<QAction *>(parent)->setIcon(yesIcon);
+ qobject_cast<TQAction *>(parent)->setIcon(yesIcon);
if (parent->isCheckable()) {
- qobject_cast<QAction *>(parent)->setChecked(!initiallyChecked);
+ qobject_cast<TQAction *>(parent)->setChecked(!initiallyChecked);
}
break;
}
@@ -237,7 +237,7 @@ qint64 Action::targetPID() const
if (d->targetPID != 0) {
return d->targetPID;
} else {
- return QCoreApplication::applicationPid();
+ return TQCoreApplication::applicationPid();
}
}
@@ -254,7 +254,7 @@ bool Action::isAllowed() const
return d->pkResult == Authority::Yes;
}
-bool Action::is(const QString &other) const
+bool Action::is(const TQString &other) const
{
return d->actionId == other;
}
@@ -264,7 +264,7 @@ void Action::revoke()
/*TODO: implement it? no negative authorizations available, no authorization db*/
}
-void Action::setText(const QString &text, States states)
+void Action::setText(const TQString &text, States states)
{
if (states & All) {
d->selfBlockedText = text;
@@ -284,7 +284,7 @@ void Action::setText(const QString &text, States states)
d->updateAction();
}
-QString Action::text(Action::State state) const
+TQString Action::text(Action::State state) const
{
switch (state) {
case Yes:
@@ -296,13 +296,13 @@ QString Action::text(Action::State state) const
case SelfBlocked:
return d->selfBlockedText;
case None:
- return QAction::text();
+ return TQAction::text();
default:
- return QString();
+ return TQString();
}
}
-void Action::setToolTip(const QString &toolTip, States states)
+void Action::setToolTip(const TQString &toolTip, States states)
{
if (states & All) {
d->selfBlockedToolTip = toolTip;
@@ -322,7 +322,7 @@ void Action::setToolTip(const QString &toolTip, States states)
d->updateAction();
}
-QString Action::toolTip(Action::State state) const
+TQString Action::toolTip(Action::State state) const
{
switch (state) {
case Yes:
@@ -334,13 +334,13 @@ QString Action::toolTip(Action::State state) const
case SelfBlocked:
return d->selfBlockedToolTip;
case None:
- return QAction::toolTip();
+ return TQAction::toolTip();
default:
- return QString();
+ return TQString();
}
}
-void Action::setWhatsThis(const QString &whatsThis, States states)
+void Action::setWhatsThis(const TQString &whatsThis, States states)
{
if (states & All) {
d->selfBlockedWhatsThis = whatsThis;
@@ -360,7 +360,7 @@ void Action::setWhatsThis(const QString &whatsThis, States states)
d->updateAction();
}
-QString Action::whatsThis(Action::State state) const
+TQString Action::whatsThis(Action::State state) const
{
switch (state) {
case Yes:
@@ -372,13 +372,13 @@ QString Action::whatsThis(Action::State state) const
case SelfBlocked:
return d->selfBlockedWhatsThis;
case None:
- return QAction::whatsThis();
+ return TQAction::whatsThis();
default:
- return QString();
+ return TQString();
}
}
-void Action::setIcon(const QIcon &icon, States states)
+void Action::setIcon(const TQIcon &icon, States states)
{
if (states & All) {
d->selfBlockedIcon = icon;
@@ -398,7 +398,7 @@ void Action::setIcon(const QIcon &icon, States states)
d->updateAction();
}
-QIcon Action::icon(Action::State state) const
+TQIcon Action::icon(Action::State state) const
{
switch (state) {
case Yes:
@@ -410,9 +410,9 @@ QIcon Action::icon(Action::State state) const
case SelfBlocked:
return d->selfBlockedIcon;
case None:
- return QAction::icon();
+ return TQAction::icon();
default:
- return QIcon();
+ return TQIcon();
}
}
@@ -448,7 +448,7 @@ bool Action::isEnabled(Action::State state) const
case SelfBlocked:
return d->selfBlockedEnabled;
case None:
- return QAction::isEnabled();
+ return TQAction::isEnabled();
default:
return false;
}
@@ -486,13 +486,13 @@ bool Action::isVisible(Action::State state) const
case SelfBlocked:
return d->selfBlockedVisible;
case None:
- return QAction::isVisible();
+ return TQAction::isVisible();
default:
return false;
}
}
-void Action::setPolkitAction(const QString &actionId)
+void Action::setPolkitAction(const TQString &actionId)
{
//TODO:
d->actionId = actionId;
@@ -503,7 +503,7 @@ void Action::setPolkitAction(const QString &actionId)
//--------------------------------------------------
-QString Action::actionId() const
+TQString Action::actionId() const
{
return d->actionId;
}
diff --git a/gui/polkitqt1-gui-action.h b/gui/polkitqt1-gui-action.h
index fed4cdc12..0b8763e8d 100644
--- a/gui/polkitqt1-gui-action.h
+++ b/gui/polkitqt1-gui-action.h
@@ -24,9 +24,9 @@
#include "polkitqt1-export.h"
-#include <QtGui/QAction>
+#include <TQtGui/TQAction>
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Gui
@@ -44,16 +44,16 @@ namespace Gui
* given action.
*
* Most of the times, you would want to use this class combined
- * with a QAbstractButton. In this case, you can use the more
+ * with a TQAbstractButton. In this case, you can use the more
* comfortable ActionButton class that manages button's properties
* update for you.
*
* \see ActionButton
*/
-class POLKITQT1_EXPORT Action : public QAction
+class POLKITQT1_EXPORT Action : public TQAction
{
Q_OBJECT
- Q_DISABLE_COPY(Action)
+ TQ_DISABLE_COPY(Action)
public:
enum State {
@@ -77,7 +77,7 @@ public:
* \param actionId the PolicyKit action Id (e.g.: org.freedesktop.policykit.read)
* \param parent the object parent
*/
- explicit Action(const QString &actionId = QString(), QObject *parent = 0);
+ explicit Action(const TQString &actionId = TQString(), TQObject *parent = 0);
~Action();
Q_SIGNALS:
@@ -134,7 +134,7 @@ public:
*
* \param actionId The new action ID
*/
- void setPolkitAction(const QString &actionId);
+ void setPolkitAction(const TQString &actionId);
/**
* Returns the current action ID.
@@ -142,7 +142,7 @@ public:
* \return The action ID
*
*/
- QString actionId() const;
+ TQString actionId() const;
/**
* Sets the text for the current action. This will
@@ -151,7 +151,7 @@ public:
* \param states the states of the Polkit action on which the setting
* will be applied
*/
- void setText(const QString &text, States states = All);
+ void setText(const TQString &text, States states = All);
/**
* Sets the tooltip for the current action. This will
@@ -160,7 +160,7 @@ public:
* \param states the states of the Polkit action on which the setting
* will be applied
*/
- void setToolTip(const QString &toolTip, States states = All);
+ void setToolTip(const TQString &toolTip, States states = All);
/**
* Sets the whatsthis for the current action. This will
@@ -169,18 +169,18 @@ public:
* \param states the states of the Polkit action on which the setting
* will be applied
*/
- void setWhatsThis(const QString &whatsThis, States states = All);
+ void setWhatsThis(const TQString &whatsThis, States states = All);
/**
* Sets the icon for the current action. This will
* be shown only in the states specified in the \c states parameter.
- * \note You need to pass a QIcon here. You can easily
+ * \note You need to pass a TQIcon here. You can easily
* create one from a Pixmap, or pass a KIcon
* \param icon the new icon for the action
* \param states the states of the Polkit action on which the setting
* will be applied
*/
- void setIcon(const QIcon &icon, States states = All);
+ void setIcon(const TQIcon &icon, States states = All);
/**
* Sets whether the current action is visible or not. This will
@@ -216,7 +216,7 @@ public:
* \param state The state to be checked
* \returns The text shown when the action is in the specified state
*/
- QString text(State state = None) const;
+ TQString text(State state = None) const;
/**
* Gets the tooltip of the action when it is in the specified state
@@ -225,7 +225,7 @@ public:
* \param state The state to be checked
* \returns The tooltip shown when the action is in the specified state
*/
- QString toolTip(State state = None) const;
+ TQString toolTip(State state = None) const;
/**
* Gets the whatsThis of the action when it is in the specified state
@@ -233,7 +233,7 @@ public:
* \param state The state to be checked
* \returns The whatsThis shown when the action is in the specified state
*/
- QString whatsThis(State state = None) const;
+ TQString whatsThis(State state = None) const;
/**
* Gets the icon of the action when it is in the specified state
@@ -242,7 +242,7 @@ public:
* \param state The state to be checked
* \returns The icon shown when the action is in the specified state
*/
- QIcon icon(State state = None) const;
+ TQIcon icon(State state = None) const;
/**
* Gets whether the action is visible or not when it is in the specified state
@@ -286,7 +286,7 @@ public:
*
* \return \c true if the actionId is the same as this object's one
*/
- bool is(const QString &actionId) const;
+ bool is(const TQString &actionId) const;
private:
class Private;
@@ -299,6 +299,6 @@ private:
}
-Q_DECLARE_OPERATORS_FOR_FLAGS(PolkitQt1::Gui::Action::States)
+Q_DECLARE_OPERATORS_FOR_FLAGS(PolkitTQt1::Gui::Action::States)
#endif
diff --git a/gui/polkitqt1-gui-actionbutton.cpp b/gui/polkitqt1-gui-actionbutton.cpp
index a9963dcb9..fefb831cf 100644
--- a/gui/polkitqt1-gui-actionbutton.cpp
+++ b/gui/polkitqt1-gui-actionbutton.cpp
@@ -23,15 +23,15 @@
#include "polkitqt1-gui-actionbutton_p.h"
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Gui
{
-ActionButton::ActionButton(QAbstractButton *button, const QString &actionId, QObject *parent)
+ActionButton::ActionButton(TQAbstractButton *button, const TQString &actionId, TQObject *parent)
: Action(actionId, parent)
- , d_ptr(new ActionButtonPrivate(QList<QAbstractButton *>() << button))
+ , d_ptr(new ActionButtonPrivate(TQList<TQAbstractButton *>() << button))
{
d_ptr->q_ptr = this;
@@ -39,7 +39,7 @@ ActionButton::ActionButton(QAbstractButton *button, const QString &actionId, QOb
connect(this, SIGNAL(dataChanged()), SLOT(updateButton()));
}
-ActionButton::ActionButton(ActionButtonPrivate &dd, const QString &actionId, QObject *parent)
+ActionButton::ActionButton(ActionButtonPrivate &dd, const TQString &actionId, TQObject *parent)
: Action(actionId, parent)
, d_ptr(&dd)
{
@@ -57,7 +57,7 @@ void ActionButtonPrivate::updateButton()
{
Q_Q(ActionButton);
- Q_FOREACH(QAbstractButton *ent, buttons) {
+ Q_FOREACH(TQAbstractButton *ent, buttons) {
ent->setVisible(q->isVisible());
ent->setEnabled(q->isEnabled());
ent->setText(q->text());
@@ -81,7 +81,7 @@ bool ActionButton::activate()
Q_D(ActionButton);
bool tg = false;
- Q_FOREACH(QAbstractButton *ent, d->buttons) {
+ Q_FOREACH(TQAbstractButton *ent, d->buttons) {
if (ent->isCheckable()) {
// we set the the current Action state
ent->setChecked(isChecked());
@@ -97,12 +97,12 @@ bool ActionButton::activate()
return Action::activate();
}
-void ActionButton::setButton(QAbstractButton *button)
+void ActionButton::setButton(TQAbstractButton *button)
{
Q_D(ActionButton);
// First, let's clear the list
- Q_FOREACH(QAbstractButton *ent, d->buttons) {
+ Q_FOREACH(TQAbstractButton *ent, d->buttons) {
d->removeButton(ent);
}
@@ -110,21 +110,21 @@ void ActionButton::setButton(QAbstractButton *button)
d->addButton(button);
}
-void ActionButtonPrivate::addButton(QAbstractButton *button)
+void ActionButtonPrivate::addButton(TQAbstractButton *button)
{
Q_Q(ActionButton);
buttons.append(button);
- QObject::connect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
- QObject::connect(q, SIGNAL(toggled(bool)), button, SLOT(toggle()));
+ TQObject::connect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
+ TQObject::connect(q, SIGNAL(toggled(bool)), button, SLOT(toggle()));
if (q->isCheckable()) {
// the button should follow our first buttons
button->setCheckable(true);
} else if (button->isCheckable()) {
// if we are not checkable BUT the button
- // is (eg a QCheckBox) we should set all buttons to
+ // is (eg a TQCheckBox) we should set all buttons to
// checkable.
- Q_FOREACH(QAbstractButton *ent, buttons) {
+ Q_FOREACH(TQAbstractButton *ent, buttons) {
ent->setCheckable(true);
}
// set the checkable state of Action to store the initial state
@@ -134,18 +134,18 @@ void ActionButtonPrivate::addButton(QAbstractButton *button)
updateButton();
}
-void ActionButtonPrivate::removeButton(QAbstractButton *button)
+void ActionButtonPrivate::removeButton(TQAbstractButton *button)
{
Q_Q(ActionButton);
if (buttons.contains(button)) {
- QObject::disconnect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
- QObject::disconnect(q, SIGNAL(toggled(bool)), button, SLOT(toggle()));
+ TQObject::disconnect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
+ TQObject::disconnect(q, SIGNAL(toggled(bool)), button, SLOT(toggle()));
buttons.removeOne(button);
}
}
-QAbstractButton *ActionButton::button() const
+TQAbstractButton *ActionButton::button() const
{
Q_D(const ActionButton);
@@ -156,7 +156,7 @@ void ActionButtonPrivate::streamClicked(bool c)
{
Q_Q(ActionButton);
- Q_EMIT q->clicked(qobject_cast<QAbstractButton *>(q->sender()), c);
+ Q_EMIT q->clicked(qobject_cast<TQAbstractButton *>(q->sender()), c);
}
}
diff --git a/gui/polkitqt1-gui-actionbutton.h b/gui/polkitqt1-gui-actionbutton.h
index 23f1783b0..67fdba347 100644
--- a/gui/polkitqt1-gui-actionbutton.h
+++ b/gui/polkitqt1-gui-actionbutton.h
@@ -25,9 +25,9 @@
#include "polkitqt1-export.h"
#include "polkitqt1-gui-action.h"
-class QAbstractButton;
+class TQAbstractButton;
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Gui
@@ -39,10 +39,10 @@ class ActionButtonPrivate;
* \author Daniel Nicoletti <[email protected]>
* \author Dario Freddi <[email protected]>
*
- * \brief Class used to hold and update a QAbstractButton
+ * \brief Class used to hold and update a TQAbstractButton
*
- * This class allows you to associate QAbstractButtons
- * (i.e. QPushButton) to a PolicyKit Action. It will update the
+ * This class allows you to associate TQAbstractButtons
+ * (i.e. TQPushButton) to a PolicyKit Action. It will update the
* button properties according to the PolicyKit Action automatically.
*
* \note You should connect the activated() signal to receive
@@ -54,23 +54,23 @@ class POLKITQT1_EXPORT ActionButton : public Action
{
Q_OBJECT
Q_DECLARE_PRIVATE(ActionButton)
- Q_DISABLE_COPY(ActionButton)
+ TQ_DISABLE_COPY(ActionButton)
public:
/**
* Constructs a new ActionButton. You need to pass this
- * constructor an existing QAbstractButton, whose properties
+ * constructor an existing TQAbstractButton, whose properties
* will be modified according to the underlying Action
* object. As ActionButton inherits from Action, you can
* define your button's behavior right through this wrapper.
*
* \see Action
*
- * \param button the QAbstractButton to associate to this ActionButton
+ * \param button the TQAbstractButton to associate to this ActionButton
* \param actionId the action Id to create the underlying Action
* \param parent the parent object
*/
- explicit ActionButton(QAbstractButton *button, const QString &actionId = QString(), QObject *parent = 0);
+ explicit ActionButton(TQAbstractButton *button, const TQString &actionId = TQString(), TQObject *parent = 0);
virtual ~ActionButton();
/**
@@ -78,7 +78,7 @@ public:
*
* \note If you are calling this function, you're probably
* changing the button the action is referring to. If this
- * is the case, please note that Polkit-Qt does not handle
+ * is the case, please note that Polkit-TQt does not handle
* the previous button's memory, so you should take care of
* deleting it yourself (if needed). You can retrieve it by
* using button()
@@ -87,14 +87,14 @@ public:
*
* \param button the new button associated with the underlying action
*/
- void setButton(QAbstractButton *button);
+ void setButton(TQAbstractButton *button);
/**
* Returns the current button
*
* \return the button currently associated with the underlying action
*/
- QAbstractButton *button() const;
+ TQAbstractButton *button() const;
public Q_SLOTS:
/**
@@ -126,10 +126,10 @@ Q_SIGNALS:
* \param checked the checked state, if applicable. Otherwise \c false
*
*/
- void clicked(QAbstractButton *button, bool checked = false);
+ void clicked(TQAbstractButton *button, bool checked = false);
protected:
- ActionButton(ActionButtonPrivate &dd, const QString &actionId, QObject *parent = 0);
+ ActionButton(ActionButtonPrivate &dd, const TQString &actionId, TQObject *parent = 0);
ActionButtonPrivate * const d_ptr;
diff --git a/gui/polkitqt1-gui-actionbutton_p.h b/gui/polkitqt1-gui-actionbutton_p.h
index 1f072b1e7..fce14de64 100644
--- a/gui/polkitqt1-gui-actionbutton_p.h
+++ b/gui/polkitqt1-gui-actionbutton_p.h
@@ -23,28 +23,28 @@
#include <polkitqt1-gui-actionbutton.h>
-#include <QtCore/QList>
-#include <QtGui/QAbstractButton>
+#include <TQtCore/TQList>
+#include <TQtGui/TQAbstractButton>
/**
* \internal
*/
-class PolkitQt1::Gui::ActionButtonPrivate
+class PolkitTQt1::Gui::ActionButtonPrivate
{
public:
- ActionButtonPrivate(const QList<QAbstractButton *> &b)
+ ActionButtonPrivate(const TQList<TQAbstractButton *> &b)
: buttons(b) {}
virtual ~ActionButtonPrivate() {}
- void addButton(QAbstractButton *button);
- void removeButton(QAbstractButton *button);
+ void addButton(TQAbstractButton *button);
+ void removeButton(TQAbstractButton *button);
void updateButton();
void streamClicked(bool);
Q_DECLARE_PUBLIC(ActionButton)
ActionButton *q_ptr;
- QList<QAbstractButton *> buttons;
+ TQList<TQAbstractButton *> buttons;
};
#endif /* ACTIONBUTTON_P_H */
diff --git a/gui/polkitqt1-gui-actionbuttons.cpp b/gui/polkitqt1-gui-actionbuttons.cpp
index 242d41f71..125c0959f 100644
--- a/gui/polkitqt1-gui-actionbuttons.cpp
+++ b/gui/polkitqt1-gui-actionbuttons.cpp
@@ -22,13 +22,13 @@
#include "polkitqt1-gui-actionbuttons_p.h"
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Gui
{
-ActionButtons::ActionButtons(const QList<QAbstractButton *> &buttons, const QString &actionId, QObject *parent)
+ActionButtons::ActionButtons(const TQList<TQAbstractButton *> &buttons, const TQString &actionId, TQObject *parent)
: ActionButton(*new ActionButtonsPrivate(buttons), actionId, parent)
{
setButtons(buttons);
@@ -38,28 +38,28 @@ ActionButtons::~ActionButtons()
{
}
-void ActionButtons::setButtons(const QList<QAbstractButton *> &buttons)
+void ActionButtons::setButtons(const TQList<TQAbstractButton *> &buttons)
{
- Q_FOREACH(QAbstractButton *ent, buttons) {
+ Q_FOREACH(TQAbstractButton *ent, buttons) {
addButton(ent);
}
}
-QList<QAbstractButton *> ActionButtons::buttons() const
+TQList<TQAbstractButton *> ActionButtons::buttons() const
{
Q_D(const ActionButtons);
return d->buttons;
}
-void ActionButtons::addButton(QAbstractButton *button)
+void ActionButtons::addButton(TQAbstractButton *button)
{
Q_D(ActionButtons);
d->addButton(button);
}
-void ActionButtons::removeButton(QAbstractButton *button)
+void ActionButtons::removeButton(TQAbstractButton *button)
{
Q_D(ActionButtons);
diff --git a/gui/polkitqt1-gui-actionbuttons.h b/gui/polkitqt1-gui-actionbuttons.h
index b02ddb902..4e5988fd0 100644
--- a/gui/polkitqt1-gui-actionbuttons.h
+++ b/gui/polkitqt1-gui-actionbuttons.h
@@ -23,7 +23,7 @@
#include "polkitqt1-gui-actionbutton.h"
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Gui
@@ -34,10 +34,10 @@ class ActionButtonsPrivate;
* \class ActionButtons polkitqt1-gui-actionbuttons.h ActionButtons
* \author Dario Freddi <[email protected]>
*
- * \brief Class used to hold and update a list of QAbstractButtons
+ * \brief Class used to hold and update a list of TQAbstractButtons
*
* This class is a convenience wrapper around ActionButton that lets
- * you associate an undefined number of QAbstractButtons with a single
+ * you associate an undefined number of TQAbstractButtons with a single
* action. Every button will be updated accordingly upon action's properties
* changes.
*
@@ -47,23 +47,23 @@ class ActionButtons : public ActionButton
{
Q_OBJECT
Q_DECLARE_PRIVATE(ActionButtons)
- Q_DISABLE_COPY(ActionButtons)
+ TQ_DISABLE_COPY(ActionButtons)
public:
/**
* Constructs a new ActionButton. You need to pass this
- * constructor an existing list of QAbstractButtons, whose properties
+ * constructor an existing list of TQAbstractButtons, whose properties
* will be modified according to the underlying Action
* object. As ActionButtons inherits from Action, you can
* define your buttons' behavior right through this wrapper.
*
* \see Action
*
- * \param buttons the QAbstractButton to associate to this ActionButton
+ * \param buttons the TQAbstractButton to associate to this ActionButton
* \param actionId the action Id to create the underlying Action
* \param parent the parent object
*/
- explicit ActionButtons(const QList<QAbstractButton *> &buttons, const QString &actionId = QString(), QObject *parent = 0);
+ explicit ActionButtons(const TQList<TQAbstractButton *> &buttons, const TQString &actionId = TQString(), TQObject *parent = 0);
virtual ~ActionButtons();
/**
@@ -71,7 +71,7 @@ public:
*
* \note If you are calling this function, you're probably
* changing the buttons list the action is referring to. If this
- * is the case, please note that Polkit-Qt does not handle
+ * is the case, please note that Polkit-TQt does not handle
* the previous buttons' memory, so you should take care of
* deleting them yourself (if needed). You can retrieve it by
* using buttons()
@@ -80,14 +80,14 @@ public:
*
* \param buttons the new buttons associated with the underlying action
*/
- void setButtons(const QList<QAbstractButton *> &buttons);
+ void setButtons(const TQList<TQAbstractButton *> &buttons);
/**
* Returns the current buttons list
*
* \return the buttons currently associated with the underlying action
*/
- QList<QAbstractButton *> buttons() const;
+ TQList<TQAbstractButton *> buttons() const;
/**
* Adds a button to the current button list. The button's properties
@@ -95,16 +95,16 @@ public:
*
* \param button the button to add
*/
- void addButton(QAbstractButton *button);
+ void addButton(TQAbstractButton *button);
/**
- * Removes a button from the current list. Please note that Polkit-Qt
+ * Removes a button from the current list. Please note that Polkit-TQt
* does not handle the removed button's memory, so you should take care of
* deleting it yourself (if needed).
*
* \param button the button to remove
*/
- void removeButton(QAbstractButton *button);
+ void removeButton(TQAbstractButton *button);
};
}
diff --git a/gui/polkitqt1-gui-actionbuttons_p.h b/gui/polkitqt1-gui-actionbuttons_p.h
index c334d301c..b6b8518f4 100644
--- a/gui/polkitqt1-gui-actionbuttons_p.h
+++ b/gui/polkitqt1-gui-actionbuttons_p.h
@@ -26,10 +26,10 @@
/**
* \internal
*/
-class PolkitQt1::Gui::ActionButtonsPrivate : public ActionButtonPrivate
+class PolkitTQt1::Gui::ActionButtonsPrivate : public ActionButtonPrivate
{
public:
- ActionButtonsPrivate(const QList<QAbstractButton *> &b)
+ ActionButtonsPrivate(const TQList<TQAbstractButton *> &b)
: ActionButtonPrivate(b) {}
};