refactor: remove unused components

This commit is contained in:
tobtoht 2023-03-29 09:49:23 +02:00
parent e86377de5c
commit b326f6328a
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
2 changed files with 0 additions and 93 deletions

View 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;

View 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