Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OpenGL
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
C-Fu
OpenGL
Commits
54b87b5d
Commit
54b87b5d
authored
7 years ago
by
Anakin
Browse files
Options
Downloads
Patches
Plain Diff
fixed things i've broken by the merge conflict
parent
68387fe7
Branches
developement_1
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
QtMeshViewer/Header/MainWindow.h
+1
-2
1 addition, 2 deletions
QtMeshViewer/Header/MainWindow.h
QtMeshViewer/Source/MainWindow.cpp
+7
-7
7 additions, 7 deletions
QtMeshViewer/Source/MainWindow.cpp
with
8 additions
and
9 deletions
QtMeshViewer/Header/MainWindow.h
+
1
−
2
View file @
54b87b5d
...
...
@@ -26,7 +26,6 @@ private:
FileInfoWindow
*
m_infoWindow
;
QStringList
m_filters
;
QStringList
m_Paths
;
// functions
private:
...
...
@@ -48,7 +47,7 @@ public slots:
// private slots
private
slots
:
void
setupAssetLibrary
();
void
on_file
List
Widget_doubleClicked
(
const
QModelIndex
&
index
);
void
on_file
Tree
Widget_doubleClicked
();
void
on_dirDropDownList_currentTextChanged
(
const
QString
&
arg1
);
// signals
...
...
This diff is collapsed.
Click to expand it.
QtMeshViewer/Source/MainWindow.cpp
+
7
−
7
View file @
54b87b5d
...
...
@@ -171,14 +171,15 @@ void MainWindow::setupWidgets()
void
MainWindow
::
updateAssetTree
(
QString
path
)
{
ui
->
fileListWidget
->
clear
();
m_Paths
.
clear
();
ui
->
fileTreeWidget
->
clear
();
QDirIterator
itterator
(
path
,
QStringList
()
<<
"*.msh"
<<
"*.MSH"
<<
"*.mesh"
<<
"*.MESH"
,
QDir
::
Files
,
QDirIterator
::
Subdirectories
);
while
(
itterator
.
hasNext
())
{
ui
->
fileListWidget
->
insertItem
(
0
,
new
QListWidgetItem
(
itterator
.
fileName
()));
m_Paths
.
prepend
(
itterator
.
fileInfo
().
absoluteFilePath
());
QTreeWidgetItem
*
sub
=
new
QTreeWidgetItem
(
ui
->
fileTreeWidget
);
sub
->
setData
(
0
,
Qt
::
DisplayRole
,
itterator
.
fileName
());
sub
->
setData
(
1
,
Qt
::
DisplayRole
,
itterator
.
fileInfo
().
absoluteFilePath
());
itterator
.
next
();
}
}
...
...
@@ -247,10 +248,9 @@ void MainWindow::setupAssetLibrary()
updateAssetTree
(
ui
->
dirDropDownList
->
currentData
().
toString
());
}
void
MainWindow
::
on_file
List
Widget_doubleClicked
(
const
QModelIndex
&
index
)
void
MainWindow
::
on_file
Tree
Widget_doubleClicked
()
{
int
slotVal
=
index
.
row
();
QString
clickedFile
=
m_Paths
.
at
(
slotVal
);
QString
clickedFile
=
ui
->
fileTreeWidget
->
currentItem
()
->
text
(
1
);
openFile
(
clickedFile
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment