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
ec639c87
Commit
ec639c87
authored
Dec 21, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed resize error on wb_wge and xtt_ge widgets.
parent
6c17e476
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
42 deletions
+2
-42
wb/lib/wb/qt/wb_wge_qt.cqt
wb/lib/wb/qt/wb_wge_qt.cqt
+1
-15
wb/lib/wb/qt/wb_wge_qt.h
wb/lib/wb/qt/wb_wge_qt.h
+0
-2
xtt/lib/xtt/qt/xtt_clognav_qt.cpp
xtt/lib/xtt/qt/xtt_clognav_qt.cpp
+0
-3
xtt/lib/xtt/qt/xtt_ge_qt.cqt
xtt/lib/xtt/qt/xtt_ge_qt.cqt
+1
-20
xtt/lib/xtt/qt/xtt_ge_qt.h
xtt/lib/xtt/qt/xtt_ge_qt.h
+0
-2
No files found.
wb/lib/wb/qt/wb_wge_qt.cqt
View file @
ec639c87
...
...
@@ -150,23 +150,9 @@ WGeQt::~WGeQt()
}
}
void WGeQtWidget::resize(int width, int height)
{
int default_width;
int default_height;
default_width = width + 20;
default_height = height + 20;
default_height = MIN(default_height, width * 0.95);
default_height = MAX(default_height, width * 1.05);
QWidget::resize(default_width, default_height);
}
void WGeQt::set_size(int width, int height)
{
toplevel->resize(width
, height
);
toplevel->resize(width
+ 20, height + 20
);
}
void WGeQt::set_subwindow_release()
...
...
wb/lib/wb/qt/wb_wge_qt.h
View file @
ec639c87
...
...
@@ -81,8 +81,6 @@ public:
{
}
void
resize
(
int
width
,
int
height
);
protected:
void
focusInEvent
(
QFocusEvent
*
event
);
void
closeEvent
(
QCloseEvent
*
event
);
...
...
xtt/lib/xtt/qt/xtt_clognav_qt.cpp
View file @
ec639c87
...
...
@@ -46,15 +46,12 @@ CLogNavQt::CLogNavQt(
void
*
clog_parent_ctx
,
QWidget
*
clog_parent_wid
,
QWidget
**
w
)
:
CLogNav
(
clog_parent_ctx
)
{
debug_print
(
"creating a scrolledbrowwidgetqt
\n
"
);
form_widget
=
scrolledbrowwidgetqt_new
(
init_brow_cb
,
this
,
&
brow_widget
);
*
w
=
form_widget
;
}
CLogNavQt
::~
CLogNavQt
()
{
debug_print
(
"CLogNavQt::~CLogNavQt
\n
"
);
delete
brow
;
form_widget
->
close
();
}
...
...
xtt/lib/xtt/qt/xtt_ge_qt.cqt
View file @
ec639c87
...
...
@@ -75,27 +75,9 @@ void XttGeQt::set_below(int val)
toplevel->windowFlags() | Qt::WindowStaysOnBottomHint);
}
void XttGeQtWidget::resize(int width, int height)
{
int default_width;
int default_height;
float rd = 0.05;
;
default_width = width + 20;
default_height = height + 20;
if (width < 300 || height < 300) {
rd = 0.2;
}
default_height = MIN(default_height, width * (1.0 + rd));
default_height = MAX(default_height, width * (1.0 - rd));
QWidget::resize(default_width, default_height);
}
void XttGeQt::set_size(int width, int height)
{
toplevel->resize(width
, height
);
toplevel->resize(width
+ 20, height + 20
);
}
void XttGeQt::ge_change_value_cb(void* ge_ctx, void* value_object, char* text)
...
...
@@ -294,7 +276,6 @@ XttGeQt::XttGeQt(QWidget* xg_parent_wid, void* xg_parent_ctx,
if (options & ge_mOptions_Dialog) {
toplevel->setWindowFlags(Qt::Dialog);
toplevel->setMinimumSize(window_width, window_height);
}
CoWowQt::SetWindowIcon(toplevel);
...
...
xtt/lib/xtt/qt/xtt_ge_qt.h
View file @
ec639c87
...
...
@@ -101,8 +101,6 @@ public:
{
}
void
resize
(
int
width
,
int
height
);
protected:
void
focusInEvent
(
QFocusEvent
*
event
);
void
closeEvent
(
QCloseEvent
*
event
);
...
...
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