diff options
author | Michele Calgaro <[email protected]> | 2021-10-31 00:13:21 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-10-31 00:14:22 +0900 |
commit | e8933e99b4600d91e9eab7d1ad3a2d35813028a9 (patch) | |
tree | b2899fd1ef651a1bff56918ace94625a4bc14aa0 /gui/polkitqt1-gui-actionbuttons.cpp | |
parent | e8494e60efeb94c67c813d1c1c038031915e8c17 (diff) | |
download | polkit-tqt-e8933e99b4600d91e9eab7d1ad3a2d35813028a9.tar.gz polkit-tqt-e8933e99b4600d91e9eab7d1ad3a2d35813028a9.zip |
More Qt->TQt conversion and some clean up.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'gui/polkitqt1-gui-actionbuttons.cpp')
-rw-r--r-- | gui/polkitqt1-gui-actionbuttons.cpp | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/gui/polkitqt1-gui-actionbuttons.cpp b/gui/polkitqt1-gui-actionbuttons.cpp deleted file mode 100644 index 125c0959f..000000000 --- a/gui/polkitqt1-gui-actionbuttons.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of the Polkit-qt project - * Copyright (C) 2009 Dario Freddi <[email protected]> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public License - * along with this library; see the file COPYING.LIB. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#include "polkitqt1-gui-actionbuttons.h" - -#include "polkitqt1-gui-actionbuttons_p.h" - -namespace PolkitTQt1 -{ - -namespace Gui -{ - -ActionButtons::ActionButtons(const TQList<TQAbstractButton *> &buttons, const TQString &actionId, TQObject *parent) - : ActionButton(*new ActionButtonsPrivate(buttons), actionId, parent) -{ - setButtons(buttons); -} - -ActionButtons::~ActionButtons() -{ -} - -void ActionButtons::setButtons(const TQList<TQAbstractButton *> &buttons) -{ - Q_FOREACH(TQAbstractButton *ent, buttons) { - addButton(ent); - } -} - -TQList<TQAbstractButton *> ActionButtons::buttons() const -{ - Q_D(const ActionButtons); - - return d->buttons; -} - -void ActionButtons::addButton(TQAbstractButton *button) -{ - Q_D(ActionButtons); - - d->addButton(button); -} - -void ActionButtons::removeButton(TQAbstractButton *button) -{ - Q_D(ActionButtons); - - d->removeButton(button); -} - -} - -} - -#include "polkitqt1-gui-actionbuttons.moc" |