From 05e9e7b4fcefeedafe9372fa649686d0273f2198 Mon Sep 17 00:00:00 2001 From: ubbo Date: Fri, 26 Sep 2008 00:47:07 +0000 Subject: some code-reorganisation in keylist.cpp git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@175 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keylist.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/keylist.cpp b/keylist.cpp index 5bdb2c6..22903c5 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -39,9 +39,12 @@ KeyList::KeyList(QWidget *parent) // may be it should focus on whole row m_keyList->setFocusPolicy(Qt::NoFocus); + m_keyList->setAlternatingRowColors(true); + QStringList labels; labels << "" << "" << "Name" << "EMail" << "id"; m_keyList->setHorizontalHeaderLabels(labels); + m_keyList->horizontalHeader()->setStretchLastSection(true); m_deleteButton = new QPushButton(tr("Delete Checked Keys")); @@ -50,6 +53,8 @@ KeyList::KeyList(QWidget *parent) QVBoxLayout *layout = new QVBoxLayout; layout->addWidget(m_keyList); layout->addWidget(m_deleteButton); + layout->setContentsMargins(0, 0, 0, 0); + layout->setSpacing(3); setLayout(layout); createActions(); -- cgit v1.2.3