Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
ffe85962
Commit
ffe85962
authored
Dec 20, 2009
by
Max-Wilhelm Bruker
Browse files
reverted deck editor column resizing
parent
06de6b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/window_deckeditor.cpp
View file @
ffe85962
...
@@ -36,9 +36,9 @@ WndDeckEditor::WndDeckEditor(QWidget *parent)
...
@@ -36,9 +36,9 @@ WndDeckEditor::WndDeckEditor(QWidget *parent)
databaseView
->
setModel
(
databaseDisplayModel
);
databaseView
->
setModel
(
databaseDisplayModel
);
databaseView
->
setUniformRowHeights
(
true
);
databaseView
->
setUniformRowHeights
(
true
);
databaseView
->
setAlternatingRowColors
(
true
);
databaseView
->
setAlternatingRowColors
(
true
);
databaseView
->
header
()
->
setResizeMode
(
QHeaderView
::
ResizeToContents
);
databaseView
->
setSortingEnabled
(
true
);
databaseView
->
setSortingEnabled
(
true
);
databaseView
->
sortByColumn
(
0
,
Qt
::
AscendingOrder
);
databaseView
->
sortByColumn
(
0
,
Qt
::
AscendingOrder
);
databaseView
->
resizeColumnToContents
(
0
);
connect
(
databaseView
->
selectionModel
(),
SIGNAL
(
currentRowChanged
(
const
QModelIndex
&
,
const
QModelIndex
&
)),
this
,
SLOT
(
updateCardInfoLeft
(
const
QModelIndex
&
,
const
QModelIndex
&
)));
connect
(
databaseView
->
selectionModel
(),
SIGNAL
(
currentRowChanged
(
const
QModelIndex
&
,
const
QModelIndex
&
)),
this
,
SLOT
(
updateCardInfoLeft
(
const
QModelIndex
&
,
const
QModelIndex
&
)));
connect
(
databaseView
,
SIGNAL
(
doubleClicked
(
const
QModelIndex
&
)),
this
,
SLOT
(
actAddCard
()));
connect
(
databaseView
,
SIGNAL
(
doubleClicked
(
const
QModelIndex
&
)),
this
,
SLOT
(
actAddCard
()));
searchEdit
->
setTreeView
(
databaseView
);
searchEdit
->
setTreeView
(
databaseView
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment