Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
de65e00f
Commit
de65e00f
authored
Mar 27, 2015
by
Sylvain Thery
Committed by
Pierre Kraemer
Apr 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smaller dialogList
parent
0f129533
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
SCHNApps/include/dialogList.h
SCHNApps/include/dialogList.h
+2
-0
SCHNApps/src/dialogList.cpp
SCHNApps/src/dialogList.cpp
+11
-0
No files found.
SCHNApps/include/dialogList.h
View file @
de65e00f
...
...
@@ -42,6 +42,8 @@ public:
bool
isChecked
(
const
QString
&
str
);
virtual
QSize
sizeHint
()
const
;
};
...
...
SCHNApps/src/dialogList.cpp
View file @
de65e00f
...
...
@@ -15,7 +15,13 @@ ListPopUp::ListPopUp(const QString& name, QWidget* parent):
setWindowFlags
(
windowFlags
()
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowStaysOnTopHint
);
m_layout
=
new
QVBoxLayout
(
this
);
setLayout
(
m_layout
);
m_layout
->
setContentsMargins
(
1
,
1
,
1
,
1
);
m_list_items
=
new
QListWidget
();
QSizePolicy
test
;
test
.
setHorizontalPolicy
(
QSizePolicy
::
Preferred
);
m_list_items
->
setSizePolicy
(
test
);
m_list_items
->
setSelectionMode
(
QAbstractItemView
::
NoSelection
);
m_layout
->
addWidget
(
m_list_items
);
}
...
...
@@ -24,6 +30,11 @@ ListPopUp::~ListPopUp()
{
}
QSize
ListPopUp
::
sizeHint
()
const
{
return
QSize
(
150
,
150
);
}
QListWidget
*
ListPopUp
::
list
()
{
return
m_list_items
;
...
...
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