Commit 70a00d2a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port auto * foo => auto foo when possible

parent 2ad2b3d0
Pipeline #49902 skipped
......@@ -15,16 +15,16 @@ AgentConfigDialog::AgentConfigDialog(QWidget *parent)
: QDialog(parent)
, m_model(new AgentConfigModel(this))
{
auto *mainWidget = new QWidget(this);
auto *mainLayout = new QVBoxLayout(this);
auto mainWidget = new QWidget(this);
auto mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(mainWidget);
ui.setupUi(mainWidget);
ui.propertyView->setModel(m_model);
auto *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close | QDialogButtonBox::Apply, this);
auto *user1Button = new QPushButton;
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Close | QDialogButtonBox::Apply, this);
auto user1Button = new QPushButton;
buttonBox->addButton(user1Button, QDialogButtonBox::ActionRole);
auto *user2Button = new QPushButton;
auto user2Button = new QPushButton;
buttonBox->addButton(user2Button, QDialogButtonBox::ActionRole);
connect(buttonBox, &QDialogButtonBox::accepted, this, &AgentConfigDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &AgentConfigDialog::reject);
......
......@@ -42,11 +42,11 @@ public:
explicit TextDialog(QWidget *parent = nullptr)
: QDialog(parent)
{
auto *mainLayout = new QVBoxLayout(this);
auto mainLayout = new QVBoxLayout(this);
mText = new QPlainTextEdit(this);
mText->setReadOnly(true);
auto *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok, this);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......@@ -137,7 +137,7 @@ void AgentWidget::slotSearchAgentType(const QString &str)
bool AgentWidget::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() == QEvent::KeyPress && obj == ui.mFilterAccount) {
auto *key = static_cast<QKeyEvent *>(event);
auto key = static_cast<QKeyEvent *>(event);
if ((key->key() == Qt::Key_Enter) || (key->key() == Qt::Key_Return)) {
event->accept();
return true;
......@@ -153,7 +153,7 @@ void AgentWidget::addAgent()
const AgentType agentType = dlg->agentType();
if (agentType.isValid()) {
auto *job = new AgentInstanceCreateJob(agentType, this);
auto job = new AgentInstanceCreateJob(agentType, this);
job->configure(this);
job->start(); // TODO: check result
}
......@@ -330,7 +330,7 @@ void AgentWidget::slotCloneAgent()
}
const AgentType agentType = mCloneSource.type();
if (agentType.isValid()) {
auto *job = new AgentInstanceCreateJob(agentType, this);
auto job = new AgentInstanceCreateJob(agentType, this);
connect(job, &KJob::result, this, &AgentWidget::cloneAgent);
job->start();
} else {
......
......@@ -83,13 +83,13 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget *parent)
: QWidget(parent)
{
Q_ASSERT(xmlGuiWindow);
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
auto *splitter = new QSplitter(Qt::Horizontal, this);
auto splitter = new QSplitter(Qt::Horizontal, this);
splitter->setObjectName(QStringLiteral("collectionSplitter"));
layout->addWidget(splitter);
auto *splitter2 = new QSplitter(Qt::Vertical, this);
auto splitter2 = new QSplitter(Qt::Vertical, this);
splitter2->setObjectName(QStringLiteral("ffvSplitter"));
mCollectionView = new Akonadi::EntityTreeView(xmlGuiWindow, this);
......@@ -97,13 +97,13 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget *parent)
mCollectionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
splitter2->addWidget(mCollectionView);
auto *favoritesView = new EntityListView(xmlGuiWindow, this);
auto favoritesView = new EntityListView(xmlGuiWindow, this);
// favoritesView->setViewMode( QListView::IconMode );
splitter2->addWidget(favoritesView);
splitter->addWidget(splitter2);
auto *tagRecorder = new ChangeRecorder(this);
auto tagRecorder = new ChangeRecorder(this);
tagRecorder->setObjectName(QStringLiteral("tagRecorder"));
tagRecorder->setTypeMonitored(Monitor::Tags);
tagRecorder->setChangeRecordingEnabled(false);
......@@ -137,7 +137,7 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget *parent)
// new ModelTest( mBrowserModel );
auto *collectionFilter = new EntityMimeTypeFilterModel(this);
auto collectionFilter = new EntityMimeTypeFilterModel(this);
collectionFilter->setSourceModel(mBrowserModel);
collectionFilter->addMimeTypeInclusionFilter(Collection::mimeType());
collectionFilter->setHeaderGroup(EntityTreeModel::CollectionTreeHeaders);
......@@ -150,28 +150,28 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget *parent)
mCollectionView->setModel(statisticsProxyModel);
auto *selectionProxyModel = new Akonadi::SelectionProxyModel(mCollectionView->selectionModel(), this);
auto selectionProxyModel = new Akonadi::SelectionProxyModel(mCollectionView->selectionModel(), this);
selectionProxyModel->setSourceModel(mBrowserModel);
selectionProxyModel->setFilterBehavior(KSelectionProxyModel::ChildrenOfExactSelection);
auto *itemFilter = new EntityMimeTypeFilterModel(this);
auto itemFilter = new EntityMimeTypeFilterModel(this);
itemFilter->setSourceModel(selectionProxyModel);
itemFilter->addMimeTypeExclusionFilter(Collection::mimeType());
itemFilter->setHeaderGroup(EntityTreeModel::ItemListHeaders);
const KConfigGroup group = KSharedConfig::openConfig()->group("FavoriteCollectionsModel");
connect(mBrowserModel, &AkonadiBrowserModel::columnsChanged, itemFilter, &EntityMimeTypeFilterModel::invalidate);
auto *sortModel = new AkonadiBrowserSortModel(mBrowserModel, this);
auto sortModel = new AkonadiBrowserSortModel(mBrowserModel, this);
sortModel->setDynamicSortFilter(true);
sortModel->setSourceModel(itemFilter);
auto *favoritesModel = new FavoriteCollectionsModel(mBrowserModel, group, this);
auto favoritesModel = new FavoriteCollectionsModel(mBrowserModel, group, this);
favoritesView->setModel(favoritesModel);
auto *splitter3 = new QSplitter(Qt::Vertical, this);
auto splitter3 = new QSplitter(Qt::Vertical, this);
splitter3->setObjectName(QStringLiteral("itemSplitter"));
splitter->addWidget(splitter3);
auto *itemViewParent = new QWidget(this);
auto itemViewParent = new QWidget(this);
itemUi.setupUi(itemViewParent);
itemUi.modelBox->addItem(QStringLiteral("Generic"));
......@@ -189,7 +189,7 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget *parent)
splitter3->addWidget(itemViewParent);
itemViewParent->layout()->setContentsMargins(0, 0, 0, 0);
auto *contentViewParent = new QWidget(this);
auto contentViewParent = new QWidget(this);
contentUi.setupUi(contentViewParent);
contentUi.saveButton->setEnabled(false);
connect(contentUi.saveButton, &QPushButton::clicked, this, &BrowserWidget::save);
......@@ -277,7 +277,7 @@ void BrowserWidget::currentChanged(const QModelIndex &index)
return;
}
auto *job = new ItemFetchJob(item, this);
auto job = new ItemFetchJob(item, this);
job->fetchScope().fetchFullPayload();
job->fetchScope().fetchAllAttributes();
job->fetchScope().setFetchTags(true);
......@@ -289,7 +289,7 @@ void BrowserWidget::currentChanged(const QModelIndex &index)
void BrowserWidget::itemFetchDone(KJob *job)
{
auto *fetch = static_cast<ItemFetchJob *>(job);
auto fetch = static_cast<ItemFetchJob *>(job);
if (job->error()) {
qCWarning(AKONADICONSOLE_LOG) << "Item fetch failed: " << job->errorString();
} else if (fetch->items().isEmpty()) {
......@@ -462,7 +462,7 @@ void BrowserWidget::save()
item.addAttribute(attr);
}
auto *store = new ItemModifyJob(item, this);
auto store = new ItemModifyJob(item, this);
connect(store, &ItemModifyJob::result, this, &BrowserWidget::saveResult);
}
......@@ -513,7 +513,7 @@ void BrowserWidget::dumpToXml()
return;
}
auto *job = new XmlWriteJob(root, fileName, this);
auto job = new XmlWriteJob(root, fileName, this);
connect(job, &XmlWriteJob::result, this, &BrowserWidget::dumpToXmlResult);
}
......@@ -587,7 +587,7 @@ void BrowserWidget::updateItemFetchScope()
void BrowserWidget::tagViewContextMenuRequested(const QPoint &pos)
{
const QModelIndex index = mTagView->indexAt(pos);
auto *menu = new QMenu(this);
auto menu = new QMenu(this);
connect(menu, &QMenu::aboutToHide, menu, &QMenu::deleteLater);
menu->addAction(QIcon::fromTheme(QStringLiteral("list-add")), QStringLiteral("&Add tag..."), this, &BrowserWidget::addTagRequested);
if (index.isValid()) {
......@@ -610,7 +610,7 @@ void BrowserWidget::tagViewContextMenuRequested(const QPoint &pos)
void BrowserWidget::addTagRequested()
{
auto *dlg = new TagPropertiesDialog(this);
auto dlg = new TagPropertiesDialog(this);
connect(dlg, &TagPropertiesDialog::accepted, this, &BrowserWidget::createTag);
connect(dlg, &TagPropertiesDialog::rejected, dlg, &TagPropertiesDialog::deleteLater);
dlg->show();
......@@ -618,13 +618,13 @@ void BrowserWidget::addTagRequested()
void BrowserWidget::addSubTagRequested()
{
auto *action = qobject_cast<QAction *>(sender());
auto action = qobject_cast<QAction *>(sender());
const Akonadi::Tag parentTag = action->parent()->property("Tag").value<Akonadi::Tag>();
Akonadi::Tag tag;
tag.setParent(parentTag);
auto *dlg = new TagPropertiesDialog(tag, this);
auto dlg = new TagPropertiesDialog(tag, this);
connect(dlg, &TagPropertiesDialog::accepted, this, &BrowserWidget::createTag);
connect(dlg, &TagPropertiesDialog::rejected, dlg, &TagPropertiesDialog::deleteLater);
dlg->show();
......@@ -632,9 +632,9 @@ void BrowserWidget::addSubTagRequested()
void BrowserWidget::editTagRequested()
{
auto *action = qobject_cast<QAction *>(sender());
auto action = qobject_cast<QAction *>(sender());
const Akonadi::Tag tag = action->parent()->property("Tag").value<Akonadi::Tag>();
auto *dlg = new TagPropertiesDialog(tag, this);
auto dlg = new TagPropertiesDialog(tag, this);
connect(dlg, &TagPropertiesDialog::accepted, this, &BrowserWidget::modifyTag);
connect(dlg, &TagPropertiesDialog::rejected, dlg, &TagPropertiesDialog::deleteLater);
dlg->show();
......@@ -650,7 +650,7 @@ void BrowserWidget::tagViewDoubleClicked(const QModelIndex &index)
const Akonadi::Tag tag = mTagModel->data(index, TagModel::TagRole).value<Akonadi::Tag>();
Q_ASSERT(tag.isValid());
auto *dlg = new TagPropertiesDialog(tag, this);
auto dlg = new TagPropertiesDialog(tag, this);
connect(dlg, &TagPropertiesDialog::accepted, this, &BrowserWidget::modifyTag);
connect(dlg, &TagPropertiesDialog::rejected, dlg, &TagPropertiesDialog::deleteLater);
dlg->show();
......@@ -669,14 +669,14 @@ void BrowserWidget::removeTagRequested()
return;
}
auto *action = qobject_cast<QAction *>(sender());
auto action = qobject_cast<QAction *>(sender());
const Akonadi::Tag tag = action->parent()->property("Tag").value<Akonadi::Tag>();
new Akonadi::TagDeleteJob(tag, this);
}
void BrowserWidget::createTag()
{
auto *dlg = qobject_cast<TagPropertiesDialog *>(sender());
auto dlg = qobject_cast<TagPropertiesDialog *>(sender());
Q_ASSERT(dlg);
if (dlg->changed()) {
......@@ -686,7 +686,7 @@ void BrowserWidget::createTag()
void BrowserWidget::modifyTag()
{
auto *dlg = qobject_cast<TagPropertiesDialog *>(sender());
auto dlg = qobject_cast<TagPropertiesDialog *>(sender());
Q_ASSERT(dlg);
if (dlg->changed()) {
......
......@@ -30,7 +30,7 @@ ConnectionPage::ConnectionPage(const QString &identifier, QWidget *parent)
, mIdentifier(identifier)
, mShowAllConnections(false)
{
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
auto h = new QHBoxLayout;
layout->addLayout(h);
......
......@@ -28,7 +28,7 @@ using org::freedesktop::Akonadi::DebugInterface;
DebugWidget::DebugWidget(QWidget *parent)
: QWidget(parent)
{
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
QString service = QStringLiteral("org.freedesktop.Akonadi");
if (Akonadi::ServerManager::hasInstanceIdentifier()) {
......@@ -40,7 +40,7 @@ DebugWidget::DebugWidget(QWidget *parent)
connect(cb, &QCheckBox::toggled, this, &DebugWidget::enableDebugger);
layout->addWidget(cb);
auto *splitter = new QSplitter(Qt::Vertical, this);
auto splitter = new QSplitter(Qt::Vertical, this);
splitter->setObjectName(QStringLiteral("debugSplitter"));
layout->addWidget(splitter);
......@@ -57,7 +57,7 @@ DebugWidget::DebugWidget(QWidget *parent)
connect(iface, &org::freedesktop::Akonadi::TracerNotification::warningEmitted, this, &DebugWidget::warningEmitted);
connect(iface, &org::freedesktop::Akonadi::TracerNotification::errorEmitted, this, &DebugWidget::errorEmitted);
auto *buttonLayout = new QHBoxLayout;
auto buttonLayout = new QHBoxLayout;
layout->addLayout(buttonLayout);
QPushButton *clearGeneralButton = new QPushButton(QStringLiteral("Clear Information View"), this);
......
......@@ -28,12 +28,12 @@ InstanceSelector::InstanceSelector(const QString &remoteHost, QWidget *parent, Q
, ui(new Ui::InstanceSelector)
, m_remoteHost(remoteHost)
{
auto *mainWidget = new QWidget(this);
auto *mainLayout = new QVBoxLayout(this);
auto mainWidget = new QWidget(this);
auto mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(mainWidget);
ui->setupUi(mainWidget);
auto *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Close, this);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Close, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......@@ -52,9 +52,9 @@ InstanceSelector::InstanceSelector(const QString &remoteHost, QWidget *parent, Q
}
slotAccept();
} else {
auto *model = new QStandardItemModel(this);
auto model = new QStandardItemModel(this);
for (const QString &inst : insts) {
auto *item = new QStandardItem;
auto item = new QStandardItem;
item->setText(inst.isEmpty() ? QStringLiteral("<global>") : inst);
item->setData(inst, Qt::UserRole);
model->appendRow(item);
......@@ -83,7 +83,7 @@ void InstanceSelector::slotAccept()
qputenv("AKONADI_INSTANCE", m_instance.toUtf8());
Akonadi::Instance::setIdentifier(m_instance);
auto *mWindow = new MainWindow;
auto mWindow = new MainWindow;
if (!m_remoteHost.isEmpty()) {
mWindow->setWindowTitle(QStringLiteral("Remote Akonadi Console (%1)").arg(m_remoteHost));
} else if (!m_instance.isEmpty()) {
......
......@@ -14,7 +14,7 @@
JobTrackerSearchWidget::JobTrackerSearchWidget(QWidget *parent)
: QWidget(parent)
{
auto *mainLayout = new QHBoxLayout(this);
auto mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
......
......@@ -40,9 +40,9 @@ JobTrackerWidget::JobTrackerWidget(const char *name, QWidget *parent, const QStr
{
d->model = new JobTrackerModel(name, this);
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
auto *enableCB = new QCheckBox(this);
auto enableCB = new QCheckBox(this);
enableCB->setText(checkboxText);
connect(enableCB, &QAbstractButton::toggled, d->model, &JobTrackerModel::setEnabled);
layout->addWidget(enableCB);
......@@ -67,7 +67,7 @@ JobTrackerWidget::JobTrackerWidget(const char *name, QWidget *parent, const QStr
layout->addWidget(d->tv);
d->model->setEnabled(false); // since it can be slow, default to off
auto *layout2 = new QHBoxLayout;
auto layout2 = new QHBoxLayout;
QPushButton *button = new QPushButton(QStringLiteral("Save to file..."), this);
connect(button, &QAbstractButton::clicked, this, &JobTrackerWidget::slotSaveToFile);
layout2->addWidget(button);
......
......@@ -38,9 +38,9 @@
MainWidget::MainWidget(KXmlGuiWindow *parent)
: QWidget(parent)
{
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
auto *tabWidget = new QTabWidget(this);
auto tabWidget = new QTabWidget(this);
tabWidget->setObjectName(QStringLiteral("mainTab"));
layout->addWidget(tabWidget);
......
......@@ -30,10 +30,10 @@ MonitorsWidget::MonitorsWidget(QWidget *parent)
{
mModel = new MonitorsModel(this);
auto *layout = new QHBoxLayout(this);
auto layout = new QHBoxLayout(this);
mTreeView = new QTreeView(this);
auto *mProxyModel = new QSortFilterProxyModel(this);
auto mProxyModel = new QSortFilterProxyModel(this);
mProxyModel->setDynamicSortFilter(true);
mProxyModel->sort(0);
mProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
......
......@@ -71,7 +71,7 @@ void NotificationFilterModel::slotRowsInserted(const QModelIndex &source_parent,
const QString text = source_idx.data().toString();
if (!mTypes.contains(text)) {
mTypes.insert(text);
auto *comboModel = qobject_cast<QStandardItemModel *>(mTypeFilter->model());
auto comboModel = qobject_cast<QStandardItemModel *>(mTypeFilter->model());
Q_ASSERT(comboModel);
auto item = new QStandardItem(text);
const auto notification = sourceModel()->data(source_idx, NotificationModel::NotificationRole).value<Akonadi::ChangeNotification>();
......
......@@ -48,11 +48,11 @@ NotificationMonitor::NotificationMonitor(QWidget *parent)
m_filterModel = new NotificationFilterModel(this);
m_filterModel->setSourceModel(m_model);
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
auto hLayout = new QHBoxLayout;
layout->addLayout(hLayout);
auto *enableCB = new QCheckBox(this);
auto enableCB = new QCheckBox(this);
enableCB->setText(QStringLiteral("Enable notification monitor"));
enableCB->setChecked(m_model->isEnabled());
connect(enableCB, &QCheckBox::toggled, m_model, &NotificationModel::setEnabled);
......@@ -84,7 +84,7 @@ NotificationMonitor::NotificationMonitor(QWidget *parent)
m_ntfView->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_splitter->addWidget(m_ntfView);
auto *h = new QHBoxLayout;
auto h = new QHBoxLayout;
layout->addLayout(h);
auto btn = new QPushButton(QStringLiteral("Save to File..."));
......
......@@ -289,7 +289,7 @@ public:
// childNode is a query in transaction
if (childNode->parent->parent) {
auto *connection = static_cast<ConnectionNode *>(childNode->parent->parent);
auto connection = static_cast<ConnectionNode *>(childNode->parent->parent);
const int trxIdx = connection->queries.indexOf(childNode->parent);
return createIndex(trxIdx, 0, childNode->parent);
} else {
......@@ -696,7 +696,7 @@ QueryDebugger::QueryDebugger(QWidget *parent)
connect(mUi->enableDebuggingChkBox, &QAbstractButton::toggled, this, &QueryDebugger::debuggerToggled);
mQueryList = new QueryDebuggerModel(this);
auto *proxy = new QSortFilterProxyModel(this);
auto proxy = new QSortFilterProxyModel(this);
proxy->setSourceModel(mQueryList);
proxy->setDynamicSortFilter(true);
mUi->queryListView->setModel(proxy);
......
......@@ -40,9 +40,9 @@ SearchWidget::SearchWidget(QWidget *parent)
{
Akonadi::ControlGui::widgetNeedsAkonadi(this);
auto *layout = new QVBoxLayout(this);
auto layout = new QVBoxLayout(this);
auto *hbox = new QHBoxLayout;
auto hbox = new QHBoxLayout;
hbox->addWidget(new QLabel(QStringLiteral("Search store:")), 0, {});
mStoreCombo = new KComboBox;
mStoreCombo->setObjectName(QStringLiteral("SearchStoreCombo"));
......@@ -55,7 +55,7 @@ SearchWidget::SearchWidget(QWidget *parent)
mVSplitter = new QSplitter(Qt::Vertical);
mVSplitter->setObjectName(QStringLiteral("SearchVSplitter"));
auto w = new QWidget;
auto *vbox = new QVBoxLayout(w);
auto vbox = new QVBoxLayout(w);
vbox->addWidget(new QLabel(QStringLiteral("Search query:")));
mQueryWidget = new QPlainTextEdit;
vbox->addWidget(mQueryWidget);
......@@ -215,7 +215,7 @@ void SearchWidget::itemFetched(KJob *job)
return;
}
auto *fetchJob = qobject_cast<Akonadi::ItemFetchJob *>(job);
auto fetchJob = qobject_cast<Akonadi::ItemFetchJob *>(job);
if (!fetchJob->items().isEmpty()) {
const Akonadi::Item item = fetchJob->items().first();
mItemView->setPlainText(QString::fromUtf8(item.payloadData()));
......
......@@ -45,16 +45,16 @@ bool TagPropertiesDialog::changed() const
void TagPropertiesDialog::setupUi()
{
auto *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, &QDialogButtonBox::accepted, this, &TagPropertiesDialog::slotAccept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &TagPropertiesDialog::reject);
auto *widget = new QWidget(this);
auto widget = new QWidget(this);
ui.setupUi(widget);
auto *mainLayout = new QVBoxLayout(this);
auto mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(widget);
mainLayout->addWidget(buttonBox);
......
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