Mercurial > hg > easyhg
comparison filestatuswidget.cpp @ 99:a5a2d74a83a7
* Minor text and layout changes; ensure path widgets are updated when repo changes
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 17:29:31 +0000 |
parents | d1be9712818a |
children | 0dc7305acbc8 |
comparison
equal
deleted
inserted
replaced
98:3e6c3281fb97 | 99:a5a2d74a83a7 |
---|---|
47 m_remoteURLLabel = new QLabel; | 47 m_remoteURLLabel = new QLabel; |
48 layout->addWidget(m_remoteURLLabel, row, 1); | 48 layout->addWidget(m_remoteURLLabel, row, 1); |
49 | 49 |
50 layout->setColumnStretch(1, 20); | 50 layout->setColumnStretch(1, 20); |
51 | 51 |
52 layout->addItem(new QSpacerItem(5, 8), ++row, 0); | |
53 | |
52 QMap<FileStates::State, QString> labels; | 54 QMap<FileStates::State, QString> labels; |
53 labels[FileStates::Clean] = tr("Unmodified files:"); | 55 labels[FileStates::Clean] = tr("Unmodified files:"); |
54 labels[FileStates::Modified] = tr("Modified files:"); | 56 labels[FileStates::Modified] = tr("Modified files:"); |
55 labels[FileStates::Added] = tr("Added files:"); | 57 labels[FileStates::Added] = tr("Added files:"); |
56 labels[FileStates::Removed] = tr("Removed files:"); | 58 labels[FileStates::Removed] = tr("Removed files:"); |
62 | 64 |
63 FileStates::State s = FileStates::State(i); | 65 FileStates::State s = FileStates::State(i); |
64 | 66 |
65 QWidget *box = new QWidget; | 67 QWidget *box = new QWidget; |
66 QGridLayout *boxlayout = new QGridLayout; | 68 QGridLayout *boxlayout = new QGridLayout; |
69 boxlayout->setMargin(0); | |
67 box->setLayout(boxlayout); | 70 box->setLayout(boxlayout); |
68 | 71 |
69 boxlayout->addWidget(new QLabel(labels[s]), 0, 0); | 72 boxlayout->addWidget(new QLabel(labels[s]), 0, 0); |
70 | 73 |
71 QListWidget *w = new QListWidget; | 74 QListWidget *w = new QListWidget; |