Commit d1ed6953 authored by Laurent Montel's avatar Laurent Montel 😁

Use QCombobox here

parent 1a1c1b91
......@@ -21,7 +21,7 @@
#include "inserttablewidget.h"
#include "kpimtextedit_debug.h"
#include <KLocalizedString>
#include <KComboBox>
#include <QComboBox>
#include <QSpinBox>
#include <QLabel>
......@@ -59,8 +59,8 @@ public:
gridLayout->addWidget(new QLabel(i18n("Border:")), 2, 0);
gridLayout->addWidget(mBorder, 2, 1);
mTypeOfLength = new KComboBox;
q->connect(mTypeOfLength, QOverload<int>::of(&KComboBox::activated), q, &InsertTableWidget::slotTypeOfLengthChanged);
mTypeOfLength = new QComboBox;
q->connect(mTypeOfLength, QOverload<int>::of(&QComboBox::activated), q, &InsertTableWidget::slotTypeOfLengthChanged);
// xgettext: no-c-format
mTypeOfLength->addItem(i18n("% of windows"), QTextLength::PercentageLength);
mTypeOfLength->addItem(i18n("pixels"), QTextLength::FixedLength);
......@@ -79,7 +79,7 @@ public:
QSpinBox *mRows = nullptr;
QSpinBox *mBorder = nullptr;
QSpinBox *mLength = nullptr;
KComboBox *mTypeOfLength = nullptr;
QComboBox *mTypeOfLength = nullptr;
InsertTableWidget *q = nullptr;
};
......
......@@ -21,7 +21,7 @@
#include "tablecellformatdialog.h"
#include <KColorButton>
#include <KComboBox>
#include <QComboBox>
#include <KLocalizedString>
#include <KSeparator>
......@@ -45,7 +45,7 @@ public:
QHBoxLayout *hbox = new QHBoxLayout;
QLabel *lab = new QLabel(i18n("Vertical Alignment:"));
hbox->addWidget(lab);
verticalAlignment = new KComboBox;
verticalAlignment = new QComboBox;
verticalAlignment->addItem(i18n("Top"), QTextCharFormat::AlignTop);
verticalAlignment->addItem(i18n("Middle"), QTextCharFormat::AlignMiddle);
verticalAlignment->addItem(i18n("Bottom"), QTextCharFormat::AlignBottom);
......@@ -80,7 +80,7 @@ public:
QCheckBox *useBackgroundColor = nullptr;
KColorButton *backgroundColor = nullptr;
KComboBox *verticalAlignment = nullptr;
QComboBox *verticalAlignment = nullptr;
TableCellFormatDialog *q = nullptr;
};
......
......@@ -22,7 +22,7 @@
#include "inserttablewidget.h"
#include <KLocalizedString>
#include <KComboBox>
#include <QComboBox>
#include <KSeparator>
#include <KColorButton>
......@@ -76,7 +76,7 @@ public:
sep = new KSeparator;
lay->addWidget(sep);
alignment = new KComboBox;
alignment = new QComboBox;
alignment->addItem(i18n("Left"), Qt::AlignLeft);
alignment->addItem(i18n("Right"), Qt::AlignRight);
alignment->addItem(i18n("Center"), Qt::AlignHCenter);
......@@ -115,7 +115,7 @@ public:
QCheckBox *useBackgroundColor = nullptr;
KColorButton *backgroundColor = nullptr;
KComboBox *alignment = nullptr;
QComboBox *alignment = nullptr;
QSpinBox *spacing = nullptr;
QSpinBox *padding = nullptr;
KPIMTextEdit::InsertTableWidget *tableWidget = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment