Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
Unterteilungsalgorithmen
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
Unterteilungsalgorithmen
Commits
a4b6fe90
Commit
a4b6fe90
authored
Sep 19, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
bb1cedb8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
mainwidget.cpp
QTProject/mainwidget.cpp
+3
-3
mainwidget.h
QTProject/mainwidget.h
+1
-1
mainwindow.cpp
QTProject/mainwindow.cpp
+2
-2
mainwindow.h
QTProject/mainwindow.h
+1
-1
No files found.
QTProject/mainwidget.cpp
View file @
a4b6fe90
...
...
@@ -37,10 +37,10 @@ void MainWidget::keyPressEvent(QKeyEvent *event){
cam
->
move
(
QVector3D
(
0.0
,
0.0
,
10
));
}
else
if
(
event
->
key
()
==
Qt
::
Key_Right
||
event
->
key
()
==
Qt
::
Key_D
){
emit
subdi
f
Change
(
1
);
emit
subdi
v
Change
(
1
);
}
else
if
(
event
->
key
()
==
Qt
::
Key_Left
||
event
->
key
()
==
Qt
::
Key_A
){
emit
subdi
f
Change
(
-
1
);
emit
subdi
v
Change
(
-
1
);
}
else
{
QOpenGLWidget
::
keyPressEvent
(
event
);
...
...
@@ -153,7 +153,7 @@ void MainWidget::loadNewMesh(){
QString
fn
=
QFileDialog
::
getOpenFileName
(
NULL
,
tr
(
"Open Mesh..."
),
QString
(
"..
\\
Models"
),
tr
(
"*.md5mesh *.3ds *.md2 *.obj *.dae *.dxf *.mesh.xml *.blend *.b3d"
));
emit
subdi
f
Change
(
0
);
emit
subdi
v
Change
(
0
);
loadNewMesh
(
fn
);
}
...
...
QTProject/mainwidget.h
View file @
a4b6fe90
...
...
@@ -38,7 +38,7 @@ public slots:
void
subdivide
(
int
level
);
signals
:
void
subdi
f
Change
(
int
value
);
void
subdi
v
Change
(
int
value
);
protected
:
void
initializeGL
();
...
...
QTProject/mainwindow.cpp
View file @
a4b6fe90
...
...
@@ -57,7 +57,7 @@ MainWindow::MainWindow(QWidget *parent) :
m_centralWidget
->
setFocus
();
// showMaximized();
connect
(
m_centralWidget
,
SIGNAL
(
subdi
fChange
(
int
)),
this
,
SLOT
(
subdif
Change
(
int
)));
connect
(
m_centralWidget
,
SIGNAL
(
subdi
vChange
(
int
)),
this
,
SLOT
(
subdiv
Change
(
int
)));
}
void
MainWindow
::
sliderfix
(
int
pos
){
...
...
@@ -70,7 +70,7 @@ void MainWindow::sliderfix(int pos){
oldSliderpos
=
newPos
;
}
void
MainWindow
::
subdi
f
Change
(
int
change
){
void
MainWindow
::
subdi
v
Change
(
int
change
){
if
(
change
==
0
){
subdivSlider
->
setSliderPosition
(
0
);
}
...
...
QTProject/mainwindow.h
View file @
a4b6fe90
...
...
@@ -21,7 +21,7 @@ public:
public
slots
:
void
sliderfix
(
int
pos
);
void
subdi
f
Change
(
int
change
);
void
subdi
v
Change
(
int
change
);
private
:
int
oldSliderpos
=
0
;
...
...
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