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
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
0cbb04a2
Commit
0cbb04a2
authored
Sep 27, 2013
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More compact course manager window
parent
43086df1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
73 deletions
+10
-73
src/plugins/coursemanager/task/mainwindow.cpp
src/plugins/coursemanager/task/mainwindow.cpp
+1
-4
src/plugins/coursemanager/task/mainwindow.ui
src/plugins/coursemanager/task/mainwindow.ui
+9
-69
No files found.
src/plugins/coursemanager/task/mainwindow.cpp
View file @
0cbb04a2
...
...
@@ -21,7 +21,6 @@ cursFile="";
ui
->
setupUi
(
this
);
ui
->
treeView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
ui
->
treeView
->
setIconSize
(
QSize
(
25
,
25
));
ui
->
menu
->
hide
();
ui
->
treeView
->
setStyleSheet
(
"icon-size: 25px;font-size: 14px;"
);
settings
=
sett
;
customMenu
.
hide
();
...
...
@@ -54,14 +53,12 @@ cursFile="";
// connect(ui->actionNewK,SIGNAL(triggered()),this,SLOT(newKurs()));
// editDialog = new EditDialog(this);
// connect(ui->actionEdit,SIGNAL(triggered()),this,SLOT(editTask()));
ui
->
menuKurs
->
menuAction
()
->
setVisible
(
false
);
// ui->menuKurs->menuAction()->setEnabled(false);
setEditTaskEnabled
(
false
);
ui
->
treeView
->
setSelectionMode
(
QAbstractItemView
::
SingleSelection
);
editRoot
=
new
QLineEdit
(
ui
->
treeView
);
editRoot
->
hide
();
connect
(
editRoot
,
SIGNAL
(
editingFinished
()),
this
,
SLOT
(
endRootEdit
()));
ui
->
menuKurs
->
hide
();
ui
->
treeView
->
setHorizontalScrollBarPolicy
(
Qt
::
ScrollBarAlwaysOn
);
isTeacher
=
false
;
onTask
=
false
;
...
...
@@ -843,7 +840,7 @@ void MainWindowTask::saveKursAs()
;
};
void
MainWindowTask
::
setTeacher
(
bool
mode
)
{
ui
->
menuKurs
->
menuAction
()
->
setVisible
(
false
);
{
ui
->
actionup
->
setVisible
(
false
);
ui
->
actionDown
->
setVisible
(
false
);
isTeacher
=
mode
;};
...
...
src/plugins/coursemanager/task/mainwindow.ui
View file @
0cbb04a2
...
...
@@ -21,10 +21,13 @@
</property>
<widget
class=
"QWidget"
name=
"centralWidget"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<property
name=
"margin"
>
<number>
0
</number>
</property>
<property
name=
"spacing"
>
<number>
0
</number>
</property>
<item
row=
"0"
column=
"0"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
/>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QSplitter"
name=
"splitter"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
...
...
@@ -55,8 +58,8 @@
<bool>
true
</bool>
</property>
</widget>
<widget
class=
"QWebView"
name=
"webView"
native=
"true"
>
<property
name=
"url"
stdset=
"0"
>
<widget
class=
"QWebView"
name=
"webView"
>
<property
name=
"url"
>
<url>
<string>
about:blank
</string>
</url>
...
...
@@ -66,67 +69,6 @@
</item>
</layout>
</widget>
<widget
class=
"QMenuBar"
name=
"menuBar"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
0
</width>
<height>
0
</height>
</rect>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
0
</width>
<height>
0
</height>
</size>
</property>
<widget
class=
"QMenu"
name=
"menu"
>
<property
name=
"title"
>
<string>
Практикум
</string>
</property>
<addaction
name=
"loadCurs"
/>
<addaction
name=
"actionSave"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"actionClose"
/>
<addaction
name=
"separator"
/>
</widget>
<widget
class=
"QMenu"
name=
"menu_2"
>
<property
name=
"title"
>
<string>
Задание
</string>
</property>
<addaction
name=
"do_task"
/>
<addaction
name=
"checkTask"
/>
<addaction
name=
"action_4"
/>
<addaction
name=
"actionReset"
/>
<addaction
name=
"actionTested"
/>
</widget>
<widget
class=
"QMenu"
name=
"menuKurs"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"title"
>
<string>
Редактирование
</string>
</property>
<addaction
name=
"actionAdd"
/>
<addaction
name=
"actionRemove"
/>
<addaction
name=
"actionEdit"
/>
<addaction
name=
"addDeep"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"actionSaveK"
/>
<addaction
name=
"actionSaveKas"
/>
<addaction
name=
"actionNewK"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"actionup"
/>
<addaction
name=
"actionDown"
/>
</widget>
<addaction
name=
"menu"
/>
<addaction
name=
"menu_2"
/>
<addaction
name=
"menuKurs"
/>
</widget>
<widget
class=
"QToolBar"
name=
"mainToolBar"
>
<attribute
name=
"toolBarArea"
>
<enum>
TopToolBarArea
</enum>
...
...
@@ -289,8 +231,6 @@
<header>
QtWebKit/QWebView
</header>
</customwidget>
</customwidgets>
<resources>
<include
location=
"marks.qrc"
/>
</resources>
<resources/>
<connections/>
</ui>
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