Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
51ddfbfa
Commit
51ddfbfa
authored
Dec 06, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Changed all widgets to be resizeable.
parent
82021f48
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
27 additions
and
62 deletions
+27
-62
wb/lib/wb/qt/wb_uted_qt.cqt
wb/lib/wb/qt/wb_uted_qt.cqt
+0
-1
wb/lib/wb/qt/wb_vsel_qt.cqt
wb/lib/wb/qt/wb_vsel_qt.cqt
+0
-2
wb/lib/wb/qt/wb_watt_qt.cqt
wb/lib/wb/qt/wb_watt_qt.cqt
+1
-3
wb/lib/wb/qt/wb_watttext_qt.cqt
wb/lib/wb/qt/wb_watttext_qt.cqt
+1
-4
wb/lib/wb/qt/wb_wda_qt.cqt
wb/lib/wb/qt/wb_wda_qt.cqt
+1
-5
wb/lib/wb/qt/wb_wge_qt.cqt
wb/lib/wb/qt/wb_wge_qt.cqt
+1
-1
wb/lib/wb/qt/wb_wge_qt.h
wb/lib/wb/qt/wb_wge_qt.h
+2
-1
wb/lib/wb/qt/wb_wrev_qt.cqt
wb/lib/wb/qt/wb_wrev_qt.cqt
+0
-2
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+0
-5
xtt/lib/cow/qt/cow_login_qt.cqt
xtt/lib/cow/qt/cow_login_qt.cqt
+0
-2
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
+1
-1
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
+2
-2
xtt/lib/cow/qt/cow_wow_qt.cqt
xtt/lib/cow/qt/cow_wow_qt.cqt
+2
-8
xtt/lib/cow/qt/cow_xhelp_qt.cqt
xtt/lib/cow/qt/cow_xhelp_qt.cqt
+2
-2
xtt/lib/xtt/qt/xtt_block_qt.cqt
xtt/lib/xtt/qt/xtt_block_qt.cqt
+0
-3
xtt/lib/xtt/qt/xtt_clog_qt.cqt
xtt/lib/xtt/qt/xtt_clog_qt.cqt
+0
-3
xtt/lib/xtt/qt/xtt_ge_qt.cqt
xtt/lib/xtt/qt/xtt_ge_qt.cqt
+2
-3
xtt/lib/xtt/qt/xtt_ge_qt.h
xtt/lib/xtt/qt/xtt_ge_qt.h
+2
-1
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
+4
-4
xtt/lib/xtt/qt/xtt_multiview_qt.h
xtt/lib/xtt/qt/xtt_multiview_qt.h
+2
-1
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
+1
-3
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
+2
-4
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
+1
-1
No files found.
wb/lib/wb/qt/wb_uted_qt.cqt
View file @
51ddfbfa
...
...
@@ -258,7 +258,6 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, QWidget* wu_parent_wid,
// Apply button
QPushButton* applybutton = new QPushButton("Apply");
applybutton->setFixedSize(70, 25);
QObject::connect(
applybutton, SIGNAL(clicked()), toplevel, SLOT(activate_ok()));
...
...
wb/lib/wb/qt/wb_vsel_qt.cqt
View file @
51ddfbfa
...
...
@@ -274,8 +274,6 @@ WVselQt::WVselQt(pwr_tStatus* status, void* wv_parent_ctx,
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
wb/lib/wb/qt/wb_watt_qt.cqt
View file @
51ddfbfa
...
...
@@ -386,7 +386,7 @@ WAttQt::WAttQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
}
toplevel = new WAttQtWidget(this, wa_parent_wid);
toplevel->set
Fixed
Size(410, 570);
toplevel->set
Minimum
Size(410, 570);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -457,9 +457,7 @@ WAttQt::WAttQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_cmd_scrolled_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
wb/lib/wb/qt/wb_watttext_qt.cqt
View file @
51ddfbfa
...
...
@@ -199,7 +199,7 @@ WAttTextQt::WAttTextQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
toplevel = new WAttTextQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_watttext widget"));
toplevel->set
Fixed
Size(800, 700);
toplevel->set
Minimum
Size(800, 700);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -244,9 +244,6 @@ WAttTextQt::WAttTextQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Apply);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Apply)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Apply), SIGNAL(clicked()),
...
...
wb/lib/wb/qt/wb_wda_qt.cqt
View file @
51ddfbfa
...
...
@@ -412,8 +412,6 @@ void WdaQt::open_class_dialog(char* hierstr, char* classstr, char* namestr)
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
&wdaclass_dia, SLOT(accept()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
@@ -472,7 +470,7 @@ WdaQt::WdaQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
int sts;
toplevel = new WdaQtWidget(this, wa_parent_wid);
toplevel->set
Fixed
Size(700, 700);
toplevel->set
Minimum
Size(700, 700);
toplevel->setWindowTitle(fl("Spreadsheet Editor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -546,9 +544,7 @@ WdaQt::WdaQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_cmd_scrolled_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
wb/lib/wb/qt/wb_wge_qt.cqt
View file @
51ddfbfa
...
...
@@ -166,7 +166,7 @@ void WGeQtWidget::resize(int width, int height)
void WGeQt::set_size(int width, int height)
{
toplevel->
setFixedS
ize(width, height);
toplevel->
res
ize(width, height);
}
void WGeQt::set_subwindow_release()
...
...
wb/lib/wb/qt/wb_wge_qt.h
View file @
51ddfbfa
...
...
@@ -82,8 +82,9 @@ public:
{
}
protected:
void
resize
(
int
width
,
int
height
);
protected:
void
focusInEvent
(
QFocusEvent
*
event
);
void
closeEvent
(
QCloseEvent
*
event
);
...
...
wb/lib/wb/qt/wb_wrev_qt.cqt
View file @
51ddfbfa
...
...
@@ -291,8 +291,6 @@ WRevInputDialog::WRevInputDialog(WRevQt* parent_ctx, QWidget* parent,
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this,
SLOT(activate_ok()));
connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this,
...
...
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
51ddfbfa
...
...
@@ -1521,9 +1521,7 @@ BootDialog::BootDialog(WttQt* parent_ctx, QWidget* parent)
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this,
SLOT(boot_ok_cb()));
connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this,
...
...
@@ -2439,9 +2437,6 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Apply);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Apply)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this,
SLOT(activate_options_ok()));
connect(buttons->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this,
...
...
xtt/lib/cow/qt/cow_login_qt.cqt
View file @
51ddfbfa
...
...
@@ -132,8 +132,6 @@ CoLoginQt::CoLoginQt(void* wl_parent_ctx, QWidget* wl_parent_wid,
buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
View file @
51ddfbfa
...
...
@@ -58,7 +58,7 @@ MsgWindowQt::MsgWindowQt(void* msg_parent_ctx, QWidget* msg_parent_wid,
: MsgWindow(msg_parent_ctx, msg_name, status)
{
toplevel = new MsgWindowQtWidget(this, msg_parent_wid);
toplevel->set
Fixed
Size(800, 600);
toplevel->set
Minimum
Size(800, 600);
toplevel->setWindowTitle(translate_utf8(msg_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
View file @
51ddfbfa
...
...
@@ -70,7 +70,7 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, QWidget* nodelist_parent_wid,
toplevel = new NodelistQtWidget(this, nodelist_parent_wid);
toplevel->setToolTip(fl("cow_statusmon_nodelist widget"));
toplevel->set
Fixed
Size(850, 300);
toplevel->set
Minimum
Size(850, 300);
toplevel->setWindowTitle(fl(nodelist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -349,7 +349,7 @@ NodelistInputDialogQt::NodelistInputDialogQt(
const char* txt1, const char* txt2, const char* txt3, bool input_callback)
: QDialog(parent), nodelist(parent_ctx)
{
set
Fixed
Size(600, 150);
set
Minimum
Size(600, 150);
setWindowTitle(fl(title));
setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_wow_qt.cqt
View file @
51ddfbfa
...
...
@@ -499,9 +499,6 @@ void CoWowQt::CreateFileSelDia(const char* title, void* parent_ctx,
} else if (file_type == wow_eFileSelType_Image) {
dcli_translate_filename(folder, "$pwrp_pop");
filter = "Images (*.png,*.jpg,*.gif,*.svg);;All Files (*)";
} else if (file_type == wow_eFileSelType_History) {
dcli_translate_filename(folder, "~");
filter = "History files (*.txt,*.csv,*.skv);;All Files (*)";
} else if (file_type == wow_eFileSelType_Backup) {
dcli_translate_filename(folder, "$pwrp_load");
filter = "Backup files (*.bck);;All Files (*)";
...
...
@@ -510,8 +507,8 @@ void CoWowQt::CreateFileSelDia(const char* title, void* parent_ctx,
// QFileDialog::getOpenFileName() is broken
QFileDialog dialog(object->parent_wid, fl(title), fl(folder), filter);
dialog.setFileMode(QFileDialog::ExistingFile);
int sts = dialog.exec();
int sts = dialog.exec();
if (sts == QDialog::Accepted && dialog.selectedFiles().length() > 0) {
pwr_tFileName fname;
strcpy(fname, qPrintable(dialog.selectedFiles().first()));
...
...
@@ -683,7 +680,7 @@ CoWowModalDialogQt::CoWowModalDialogQt(QWidget* parent, const char* title,
QPixmap* image_w;
pwr_tFileName fname;
set
Fixed
Size(400, 150);
set
Minimum
Size(400, 150);
setWindowTitle(fl(title));
setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -729,19 +726,16 @@ CoWowModalDialogQt::CoWowModalDialogQt(QWidget* parent, const char* title,
if (button1) {
QWidget* button1_w = new QPushButton(translate_utf8(button1), this);
button1_w->setFixedSize(90, 28);
connect(button1_w, SIGNAL(clicked()), this, SLOT(modaldia_button1_cb()));
hboxbuttons->addWidget(button1_w);
}
if (button2) {
QWidget* button2_w = new QPushButton(translate_utf8(button2), this);
button2_w->setFixedSize(90, 28);
connect(button2_w, SIGNAL(clicked()), this, SLOT(modaldia_button2_cb()));
hboxbuttons->addWidget(button2_w);
}
if (button3) {
QWidget* button3_w = new QPushButton(translate_utf8(button3), this);
button3_w->setFixedSize(90, 28);
connect(button3_w, SIGNAL(clicked()), this, SLOT(modaldia_button3_cb()));
hboxbuttons->addWidget(button3_w);
}
...
...
xtt/lib/cow/qt/cow_xhelp_qt.cqt
View file @
51ddfbfa
...
...
@@ -142,7 +142,7 @@ void CoXHelpQtWidget::focusInEvent(QFocusEvent* event)
void CoXHelpQt::set_dimension(int width, int height)
{
toplevel->
setFixedS
ize(width, height);
toplevel->
res
ize(width, height);
}
void CoXHelpQt::print()
...
...
@@ -187,7 +187,7 @@ CoXHelpQt::CoXHelpQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
strcpy(title, Lng::translate("Help"));
toplevel = new CoXHelpQtWidget(this, xa_parent_wid);
toplevel->set
Fixed
Size(700, 600);
toplevel->set
Minimum
Size(700, 600);
toplevel->setWindowTitle(fl(title));
CoWowQt::SetWindowIcon(toplevel);
...
...
xtt/lib/xtt/qt/xtt_block_qt.cqt
View file @
51ddfbfa
...
...
@@ -177,9 +177,6 @@ BlockQt::BlockQt(void* b_parent_ctx, QWidget* b_parent_wid, pwr_sAttrRef* b_oar,
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Apply);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Apply)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Apply), SIGNAL(clicked()),
...
...
xtt/lib/xtt/qt/xtt_clog_qt.cqt
View file @
51ddfbfa
...
...
@@ -218,9 +218,6 @@ void CLogQtWidget::activate_filter()
buttons->addButton(QDialogButtonBox::Ok);
buttons->addButton(QDialogButtonBox::Apply);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Apply)->setFixedSize(70, 25);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
&filter_form, SLOT(accept()));
QObject::connect(buttons->button(QDialogButtonBox::Apply), SIGNAL(clicked()),
...
...
xtt/lib/xtt/qt/xtt_ge_qt.cqt
View file @
51ddfbfa
...
...
@@ -95,7 +95,7 @@ void XttGeQtWidget::resize(int width, int height)
void XttGeQt::set_size(int width, int height)
{
toplevel->
setFixedS
ize(width, height);
toplevel->
res
ize(width, height);
}
void XttGeQt::ge_change_value_cb(void* ge_ctx, void* value_object, char* text)
...
...
@@ -294,7 +294,7 @@ XttGeQt::XttGeQt(QWidget* xg_parent_wid, void* xg_parent_ctx,
if (options & ge_mOptions_Dialog) {
toplevel->setWindowFlags(Qt::Dialog);
toplevel->set
Fixed
Size(window_width, window_height);
toplevel->set
Minimum
Size(window_width, window_height);
}
CoWowQt::SetWindowIcon(toplevel);
...
...
@@ -331,7 +331,6 @@ XttGeQt::XttGeQt(QWidget* xg_parent_wid, void* xg_parent_ctx,
QObject::connect(((GraphQt*)graph)->grow_widget,
SIGNAL(resize_signal(QResizeEvent*)), toplevel,
SLOT(action_resize(QResizeEvent*)));
// TODO: grow_widget must emit a resize_signal signal in resizeEvent()
if (xg_menu) {
QMenuBar* menu_bar = new QMenuBar();
...
...
xtt/lib/xtt/qt/xtt_ge_qt.h
View file @
51ddfbfa
...
...
@@ -101,8 +101,9 @@ public:
{
}
protected:
void
resize
(
int
width
,
int
height
);
protected:
void
focusInEvent
(
QFocusEvent
*
event
);
void
closeEvent
(
QCloseEvent
*
event
);
...
...
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
View file @
51ddfbfa
...
...
@@ -102,7 +102,7 @@ void XttMultiViewQtWidget::resize(int width, int height)
void
XttMultiViewQt
::
set_size
(
int
width
,
int
height
)
{
toplevel
->
setFixedS
ize
(
width
,
height
);
toplevel
->
res
ize
(
width
,
height
);
}
XttMultiViewQt
::~
XttMultiViewQt
()
...
...
@@ -191,12 +191,12 @@ XttMultiViewQt::XttMultiViewQt(QWidget* mv_parent_wid, void* mv_parent_ctx,
if
(
mv
.
Layout
==
pwr_eMultiViewLayoutEnum_Fix
||
mv
.
Layout
==
pwr_eMultiViewLayoutEnum_Table
)
{
toplevel
->
set
Fixed
Size
(
window_width
,
window_height
);
toplevel
->
set
Minimum
Size
(
window_width
,
window_height
);
}
if
(
mv
.
Options
&
pwr_mMultiViewOptionsMask_Dialog
)
{
toplevel
->
setWindowFlags
(
Qt
::
Dialog
);
toplevel
->
set
Fixed
Size
(
window_width
,
window_height
);
toplevel
->
set
Minimum
Size
(
window_width
,
window_height
);
}
CoWowQt
::
SetWindowIcon
(
toplevel
);
...
...
@@ -961,7 +961,7 @@ XttMultiViewQt::XttMultiViewQt(QWidget* mv_parent_wid, void* mv_parent_ctx,
toplevel
->
setModal
(
true
);
}
}
else
{
box_widget
->
set
Fixed
Size
(
window_width
,
window_height
);
box_widget
->
set
Minimum
Size
(
window_width
,
window_height
);
}
*
sts
=
XNAV__SUCCESS
;
...
...
xtt/lib/xtt/qt/xtt_multiview_qt.h
View file @
51ddfbfa
...
...
@@ -102,9 +102,10 @@ public:
{
}
void
resize
(
int
width
,
int
height
);
protected:
void
focusInEvent
(
QFocusEvent
*
event
);
void
resize
(
int
width
,
int
height
);
void
closeEvent
(
QCloseEvent
*
event
);
private:
...
...
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
View file @
51ddfbfa
...
...
@@ -361,7 +361,7 @@ XAttQt::XAttQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
str_StrncpyCutOff(title, title, 100, 1);
toplevel = new XAttQtWidget(this, xa_parent_wid);
toplevel->set
Fixed
Size(420, 600);
toplevel->set
Minimum
Size(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -434,9 +434,7 @@ XAttQt::XAttQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_cmd_scrolled_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
View file @
51ddfbfa
...
...
@@ -392,7 +392,7 @@ void XColWindQt::set_title(char* t)
void XColWindQt::set_window_size(int w, int h)
{
toplevel->
setFixedS
ize(w, h);
toplevel->
res
ize(w, h);
}
void XColWindQt::get_window_size(int* w, int* h)
...
...
@@ -434,7 +434,7 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
toplevel = new XColWindQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xcolwind widget"));
toplevel->set
Fixed
Size(420, 600);
toplevel->set
Minimum
Size(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -562,9 +562,7 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
QDialogButtonBox* buttons = new QDialogButtonBox();
buttons->addButton(QDialogButtonBox::Ok);
buttons->button(QDialogButtonBox::Ok)->setFixedSize(70, 25);
buttons->addButton(QDialogButtonBox::Cancel);
buttons->button(QDialogButtonBox::Cancel)->setFixedSize(70, 25);
QObject::connect(buttons->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
toplevel, SLOT(activate_cmd_scrolled_ok()));
QObject::connect(buttons->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
...
...
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
View file @
51ddfbfa
...
...
@@ -119,7 +119,7 @@ XCrrQt::XCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
}
toplevel = new XCrrQtWidget(this, xa_parent_wid);
toplevel->set
Fixed
Size(600, 420);
toplevel->set
Minimum
Size(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment