]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
refactor: remove unused components
authortobtoht <tob@featherwallet.org>
Wed, 29 Mar 2023 07:49:23 +0000 (09:49 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 29 Mar 2023 07:49:23 +0000 (09:49 +0200)
src/components.cpp
src/components.h

index acba61a82a9f204575994af01a79bb1f93ed0d02..c04ca8e0fcbf200899baeeaf3f30ce91dd867470 100644 (file)
@@ -32,46 +32,6 @@ StatusBarButton::StatusBarButton(const QIcon &icon, const QString &tooltip, QWid
     setCursor(QCursor(Qt::PointingHandCursor));
 }
 
-WWLabel::WWLabel(const QString& text, QWidget *parent) : QLabel(text, parent){
-    setWordWrap(true);
-    setTextInteractionFlags(Qt::TextSelectableByMouse);
-}
-
-PasswordLineEdit::PasswordLineEdit(QWidget *parent) : QLineEdit(parent) {
-    setEchoMode(Password);
-}
-
-Buttons::Buttons(QPushButton* arr[], int size, QWidget *parent) : QHBoxLayout(parent) {
-    addStretch();
-    for (int n=0; n < size; n++) {
-        addWidget(arr[n]);
-    }
-}
-
-OkButton::OkButton(QDialog *dialog, const QString& label = nullptr, QWidget *parent) : QPushButton(parent){
-    setText(label == nullptr ? label : "OK");
-    connect(this, &OkButton::clicked, dialog, &QDialog::accept);
-    setDefault(true);
-}
-
-CloseButton::CloseButton(QDialog *dialog, QWidget *parent) : QPushButton(parent) {
-    setText("Close");
-    connect(this, &CloseButton::clicked, dialog, &QDialog::close);
-    setDefault(true);
-}
-
-ButtonsTextEdit::ButtonsTextEdit(const QString &text) : QPlainTextEdit(text) {
-
-}
-
-void ButtonsTextEdit::setText(const QString &text) {
-    this->setPlainText(text);
-}
-
-QString ButtonsTextEdit::text(){
-    return this->toPlainText();
-}
-
 void HelpLabel::setHelpText(const QString &text)
 {
     this->help_text = text;
index 5d05ab73664213eda5bf3977c43e9a0d3f9a9c4f..0afa619932caf30cb4060bdb52109655513b61b1 100644 (file)
@@ -37,59 +37,6 @@ public:
     explicit StatusBarButton(const QIcon &icon, const QString &tooltip, QWidget *parent = nullptr);
 };
 
-class WWLabel : public QLabel
-{
-    Q_OBJECT
-
-public:
-    explicit WWLabel(const QString& label="", QWidget *parent = nullptr);
-};
-
-class PasswordLineEdit : public QLineEdit
-{
-    Q_OBJECT
-
-public:
-    explicit PasswordLineEdit(QWidget *parent = nullptr);
-};
-
-class Buttons : public QHBoxLayout
-{
-    Q_OBJECT
-
-public:
-    explicit Buttons(QPushButton* arr[], int size, QWidget *parent = nullptr);
-};
-
-
-class CloseButton : public QPushButton
-{
-Q_OBJECT
-
-public:
-    explicit CloseButton(QDialog *dialog, QWidget *parent = nullptr);
-};
-
-class OkButton : public QPushButton
-{
-Q_OBJECT
-
-public:
-    explicit OkButton(QDialog *dialog, const QString& label, QWidget *parent = nullptr);
-};
-
-
-class ButtonsTextEdit : public QPlainTextEdit
-{
-    Q_OBJECT
-
-public:
-    void setText(const QString &text);
-    QString text();
-
-    explicit ButtonsTextEdit(const QString &text = "");
-};
-
 class HelpLabel : public QLabel
 {
     Q_OBJECT