Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
+83
@@ -0,0 +1,83 @@
|
||||
|
||||
|
||||
|
||||
#include "bld_search.h"
|
||||
#include "ui_bld_search.h"
|
||||
#include <LtsSession/lts_session_data_dds.h>
|
||||
|
||||
#include <Plugins/Buildings/bld_data_plugin_interface.h>
|
||||
|
||||
#include <PluginInterfaces/gui_plugin_interface.h>
|
||||
|
||||
namespace Buildings
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
BuildingSearchModal::BuildingSearchModal(QWidget *parent)
|
||||
: BaseClass(parent)
|
||||
, m_ui(new Ui::BuildingSearch_WIDGET)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
m_ui->lblSearch->setText(tr("Building Name:"));
|
||||
connect(m_ui->pbCancel, &QPushButton::clicked, this, &BuildingSearchModal::reject);
|
||||
connect(m_ui->pbOk, &QPushButton::clicked, this, &BuildingSearchModal::onOkay);
|
||||
}
|
||||
|
||||
BuildingSearchModal::~BuildingSearchModal()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
void BuildingSearchModal::showEvent(QShowEvent *e)
|
||||
{
|
||||
BaseClass::showEvent(e);
|
||||
m_ui->leSearch->clear();
|
||||
m_ui->leSearch->setFocus();
|
||||
}
|
||||
|
||||
void BuildingSearchModal::onOkay()
|
||||
{
|
||||
const QString &searchString = m_ui->leSearch->text();
|
||||
if (!searchString.isEmpty())
|
||||
emit selectedSearchString(searchString);
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BuildingSearchWidget::BuildingSearchWidget(QWidget *parent)
|
||||
: BaseClass(parent)
|
||||
, m_ui(new Ui::BuildingSearch_WIDGET)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
connect(m_ui->pbCancel, &QPushButton::clicked, this, &BuildingSearchWidget::close);
|
||||
connect(m_ui->pbOk, &QPushButton::clicked, this, &BuildingSearchWidget::onOkay);
|
||||
}
|
||||
|
||||
BuildingSearchWidget::~BuildingSearchWidget()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
void BuildingSearchWidget::showEvent(QShowEvent *e)
|
||||
{
|
||||
BaseClass::showEvent(e);
|
||||
m_ui->leSearch->clear();
|
||||
m_ui->leSearch->setFocus();
|
||||
}
|
||||
|
||||
void BuildingSearchWidget::onOkay()
|
||||
{
|
||||
const QString &searchString = m_ui->leSearch->text();
|
||||
if (!searchString.isEmpty())
|
||||
emit selectedSearchString(searchString);
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user