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
ef4dcd4d
Commit
ef4dcd4d
authored
Apr 12, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to fix the scrollbars in flow.
parent
b7d2a844
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
xtt/lib/flow/qt/flow_draw_qt.cqt
xtt/lib/flow/qt/flow_draw_qt.cqt
+5
-7
xtt/lib/flow/src/flow_ctx.cpp
xtt/lib/flow/src/flow_ctx.cpp
+0
-1
xtt/lib/glow/qt/glow_draw_qt.cqt
xtt/lib/glow/qt/glow_draw_qt.cqt
+0
-5
No files found.
xtt/lib/flow/qt/flow_draw_qt.cqt
View file @
ef4dcd4d
...
...
@@ -686,9 +686,9 @@ void FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
case QEvent::Wheel: {
QWheelEvent* wheelEvent = ((QWheelEvent*)event);
if (wheelEvent->delta() > 0) {
sts = ctx->event_handler(flow_eEvent_ScrollUp,
0, 0
, 0, 0);
sts = ctx->event_handler(flow_eEvent_ScrollUp,
wheelEvent->x(), wheelEvent->y()
, 0, 0);
} else if (wheelEvent->delta() < 0) {
sts = ctx->event_handler(flow_eEvent_ScrollDown,
0, 0
, 0, 0);
sts = ctx->event_handler(flow_eEvent_ScrollDown,
wheelEvent->x(), wheelEvent->y()
, 0, 0);
}
break;
}
...
...
@@ -746,9 +746,7 @@ void FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
}
case QEvent::Paint:
case QEvent::UpdateRequest: {
QPaintEvent* paintEvent = ((QPaintEvent*)event);
sts = ctx->event_handler_nav(
flow_eEvent_Exposure, paintEvent->rect().x(), paintEvent->rect().y());
sts = ctx->event_handler_nav(flow_eEvent_Exposure, 0, 0);
nav_wind.window->update();
break;
}
...
...
@@ -771,7 +769,7 @@ void FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
return;
}
toplevel
->update();
m_wind.window
->update();
}
void FlowDrawQt::enable_event(FlowCtx* ctx, flow_eEvent event, flow_eEventType event_type,
...
...
@@ -1032,7 +1030,7 @@ bool FlowDrawQt::draw_timer_cb()
{
draw_timer_id->stop();
(draw_timer_callback_func)(ctx);
toplevel
->update();
m_wind.window
->update();
return FALSE;
}
...
...
xtt/lib/flow/src/flow_ctx.cpp
View file @
ef4dcd4d
...
...
@@ -1287,7 +1287,6 @@ int FlowCtx::event_handler_nav(flow_eEvent event, int x, int y)
case
flow_eEvent_Exposure
:
fdraw
->
get_window_size
(
navw
,
&
nav_window_width
,
&
nav_window_height
);
nav_zoom
();
change_scrollbar
();
break
;
case
flow_eEvent_ButtonMotion
:
if
(
nav_rect_movement_active
)
{
...
...
xtt/lib/glow/qt/glow_draw_qt.cqt
View file @
ef4dcd4d
...
...
@@ -827,10 +827,6 @@ void GlowDrawQt::event_handler(QEvent* event, QWidget* target)
glow_eEvent_ButtonRelease, mouseEvent->x(), mouseEvent->y());
break;
}
case QEvent::Show: {
sts = ctx->event_handler_nav(glow_eEvent_Exposure, 0, 0);
break;
}
case QEvent::Paint:
case QEvent::UpdateRequest: {
sts = ctx->event_handler_nav(glow_eEvent_Exposure, 0, 0);
...
...
@@ -857,7 +853,6 @@ void GlowDrawQt::event_handler(QEvent* event, QWidget* target)
}
m_wind.window->update();
return;
}
void GlowDrawQt::enable_event(glow_eEvent event, glow_eEventType event_type,
...
...
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