Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandrashin Denis <mail@lintest.ru>2012-10-25 00:49:13 +0400
committerKandrashin Denis <mail@lintest.ru>2012-10-25 00:49:13 +0400
commitb0d10854c0af14dc1d7200b86bf6425f36c872f9 (patch)
treed3cc05aaca312726995c33d818ded6f5c483b7ec
parent762ad539ebce568a2dccf42d490bf3beb4bb6bb8 (diff)
Hide first column in puctures list
-rw-r--r--debian/changelog6
-rw-r--r--source/fb2temp.cpp18
2 files changed, 16 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog
index 4ee53e7..3e7d99e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+fb2edit (0.0.7-squeeze1) squeeze; urgency=low
+
+ * Update release
+
+ -- Denis Kandrashin <mail@lintest.ru> Thu, 25 Oct 2012 00:08:18 +0400
+
fb2edit (0.0.6-squeeze1) squeeze; urgency=low
* Update release
diff --git a/source/fb2temp.cpp b/source/fb2temp.cpp
index 2c9a40a..40b2173 100644
--- a/source/fb2temp.cpp
+++ b/source/fb2temp.cpp
@@ -220,9 +220,8 @@ QVariant FbNetworkAccessManager::info(int row, int col) const
if (0 <= row && row < count()) {
FbTemporaryFile *file = m_files[row];
switch (col) {
- case 0: return file->name();
- case 1: return file->type();
- case 2: return file->size();
+ case 2: return file->type();
+ case 3: return file->size();
}
return m_files[row]->name();
}
@@ -255,7 +254,7 @@ FbListModel::FbListModel(FbTextEdit *text, QObject *parent)
int FbListModel::columnCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
- return 3;
+ return 4;
}
int FbListModel::rowCount(const QModelIndex &parent) const
@@ -269,9 +268,9 @@ QVariant FbListModel::headerData(int section, Qt::Orientation orientation, int r
{
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
switch (section) {
- case 0: return tr("File name");
- case 1: return tr("Type");
- case 2: return tr("Size");
+ case 1: return tr("File name");
+ case 2: return tr("Type");
+ case 3: return tr("Size");
}
}
return QVariant();
@@ -296,7 +295,7 @@ QVariant FbListModel::data(const QModelIndex &index, int role) const
} break;
case Qt::TextAlignmentRole: {
switch (index.column()) {
- case 2: return Qt::AlignRight;
+ case 3: return Qt::AlignRight;
default: return Qt::AlignLeft;
}
}
@@ -316,6 +315,7 @@ FbListView::FbListView(FbNetworkAccessManager *files, QWidget *parent)
: QTreeView(parent)
, m_files(*files)
{
+ setAllColumnsShowFocus(true);
}
void FbListView::currentChanged(const QModelIndex &current, const QModelIndex &previous)
@@ -372,6 +372,8 @@ void FbListWidget::loadFinished()
m_list->reset();
m_list->resizeColumnToContents(1);
m_list->resizeColumnToContents(2);
+ m_list->resizeColumnToContents(3);
+ m_list->setColumnHidden(0, true);
}
void FbListWidget::showImage(const QString &name)