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
81ed0c74
Commit
81ed0c74
authored
Jan 09, 2012
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stylized the teacher bar preview
parent
8cbd8a8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
style.qss
resources/style.qss
+11
-2
UBTeacherBarWidget.cpp
src/gui/UBTeacherBarWidget.cpp
+4
-2
No files found.
resources/style.qss
View file @
81ed0c74
...
...
@@ -44,14 +44,23 @@ QWidget#UBLibWebView
QWidget#UBActionPreviewOwner
{
color: #555555;
font-size : 10px;
font-weight:bold;
font-size : 12px;
font-weight: bold;
}
QWidget#UBTeacherBarPreviewComments
{
border-radius: 10px;
border: white 2px solid;
padding: 5px 5px 5px 5px;
background-color: white;
}
QWidget#UBActionPreviewContent
{
border-radius : 10px;
border: 2px solid;
padding: 5px 5px 5px 5px;
}
QWebView#SearchEngineView
...
...
src/gui/UBTeacherBarWidget.cpp
View file @
81ed0c74
...
...
@@ -900,6 +900,7 @@ void UBTeacherBarPreviewWidget::hideElements()
mpCommentsLabel
->
setObjectName
(
"UBTeacherBarPreviewSubtitle"
);
mpComments
=
new
QLabel
(
this
);
mpComments
->
setWordWrap
(
true
);
mpComments
->
setObjectName
(
"UBTeacherBarPreviewComments"
);
mpLinksLabel
=
new
QLabel
(
tr
(
"Links"
),
this
);
mpLinksLabel
->
setObjectName
(
"UBTeacherBarPreviewSubtitle"
);
...
...
@@ -1032,6 +1033,7 @@ UBActionPreview::UBActionPreview(QWidget *parent, const char *name):QWidget(pare
mpContent
->
setObjectName
(
"UBActionPreviewContent"
);
mpContent
->
setWordWrap
(
true
);
mLayout
.
addWidget
(
mpContent
);
setContentsMargins
(
-
9
,
-
9
,
-
9
,
-
9
);
}
UBActionPreview
::~
UBActionPreview
()
...
...
@@ -1052,12 +1054,12 @@ void UBActionPreview::setOwner(const QString &owner)
switch
(
owner
.
toInt
()){
case
eActionOwner_Teacher
:
mpOwner
->
setText
(
tr
(
"Teacher"
));
mpContent
->
setStyleSheet
(
"background:lightblue;"
);
mpContent
->
setStyleSheet
(
"background:lightblue;
border:lightblue;
"
);
break
;
case
eActionOwner_Student
:
mpOwner
->
setText
(
tr
(
"Student"
));
mpContent
->
setStyleSheet
(
"background:lightgreen;"
);
mpContent
->
setStyleSheet
(
"background:lightgreen;
border:lightgreen;
"
);
break
;
}
}
...
...
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