Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
45184923
Commit
45184923
authored
Feb 02, 2012
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a signal slot error
parent
897b4b67
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
UBWidgetList.cpp
src/customWidgets/UBWidgetList.cpp
+9
-0
UBWidgetList.h
src/customWidgets/UBWidgetList.h
+4
-0
UBTBDocumentEditWidget.cpp
src/gui/UBTBDocumentEditWidget.cpp
+1
-1
UBTeacherBarPreviewWidget.cpp
src/gui/UBTeacherBarPreviewWidget.cpp
+1
-0
No files found.
src/customWidgets/UBWidgetList.cpp
View file @
45184923
...
...
@@ -10,6 +10,8 @@ UBWidgetList::UBWidgetList(QWidget* parent, eWidgetListOrientation orientation,
,
mMargin
(
5
)
,
mListElementsSpacing
(
10
)
,
mpEmptyLabel
(
NULL
)
,
mCanRemove
(
true
)
,
mpCurrentWidget
(
NULL
)
{
setObjectName
(
name
);
mOrientation
=
orientation
;
...
...
@@ -130,6 +132,13 @@ void UBWidgetList::resizeEvent(QResizeEvent *ev)
updateSizes
();
}
void
UBWidgetList
::
mousePressEvent
(
QMouseEvent
*
ev
)
{
if
(
mCanRemove
){
}
}
void
UBWidgetList
::
updateSizes
()
{
// Resize all the widgets
...
...
src/customWidgets/UBWidgetList.h
View file @
45184923
...
...
@@ -41,7 +41,10 @@ public:
int
listElementsSpacing
()
{
return
mListElementsSpacing
;
}
protected
:
bool
mCanRemove
;
void
resizeEvent
(
QResizeEvent
*
ev
);
void
mousePressEvent
(
QMouseEvent
*
ev
);
private
:
int
scaleWidgets
(
QSize
pSize
);
...
...
@@ -55,6 +58,7 @@ private:
int
mListElementsSpacing
;
QMap
<
QWidget
*
,
QSize
>
mWidgetInfo
;
QLabel
*
mpEmptyLabel
;
QWidget
*
mpCurrentWidget
;
};
#endif // UBWIDGETLIST_H
src/gui/UBTBDocumentEditWidget.cpp
View file @
45184923
...
...
@@ -120,7 +120,7 @@ UBTBDocumentEditWidget::UBTBDocumentEditWidget(UBTeacherBarDataMgr* pDataMgr, QW
connect
(
mpLicenseCombox
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
onLicenseCurrentIndexChanged
(
int
)));
connect
(
mpKeywords
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
onKeywordChanged
(
QString
)));
connect
(
mpLevel
,
SIGNAL
(
currentIndexChanged
(
QString
)),
this
,
SLOT
(
onLevelChanged
(
QString
)));
connect
(
mpTopic
,
SIGNAL
(
currentIndex
Changed
(
QString
)),
this
,
SLOT
(
onTopicChanged
(
QString
)));
connect
(
mpTopic
,
SIGNAL
(
text
Changed
(
QString
)),
this
,
SLOT
(
onTopicChanged
(
QString
)));
connect
(
mpAuthor
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
onAuthorChanged
(
QString
)));
}
...
...
src/gui/UBTeacherBarPreviewWidget.cpp
View file @
45184923
...
...
@@ -134,6 +134,7 @@ void UBActionPreview::setContent(const QString &content)
UBTBPreviewContainer
::
UBTBPreviewContainer
(
QWidget
*
parent
,
const
char
*
name
)
:
UBWidgetList
(
parent
)
{
setObjectName
(
name
);
mCanRemove
=
false
;
}
UBTBPreviewContainer
::~
UBTBPreviewContainer
()
...
...
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