Skip to content

Commit 5863c1d

Browse files
committed
Update about dialog.. But should be refactor entirely
1 parent bb63a8f commit 5863c1d

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

analysis/lengthdistributionanalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void LengthDistributionAnalysis::computeDistribution()
8282
int maxLen = 0;
8383
int minLen = -1;
8484

85-
qDebug()<<mLengthCounts.length();
85+
// qDebug()<<mLengthCounts.length();
8686
// Find the min and max lengths
8787
for (int i=0;i<mLengthCounts.length();i++) {
8888
if (mLengthCounts[i]>0) {

labsquare.png

5.07 KB
Loading

model/mainanalysemodel.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ QVariant MainAnalyseModel::data(const QModelIndex &index, int role) const
7777
{
7878
switch (mRunners.at(index.row())->status())
7979
{
80-
case AnalysisRunner::Waiting : return QFontIcon::icon(0xf017, Qt::lightGray); break;
80+
case AnalysisRunner::Waiting : return QFontIcon::icon(0xf017, Qt::darkGray); break;
8181
case AnalysisRunner::Canceled: return QFontIcon::icon(0xf071,Qt::darkRed); break;
8282
case AnalysisRunner::Running : return QFontIcon::icon(0xf085,Qt::darkGray); break;
8383
case AnalysisRunner::Finished: return QFontIcon::icon(0xf00c,Qt::darkGreen); break;
@@ -93,24 +93,28 @@ QVariant MainAnalyseModel::data(const QModelIndex &index, int role) const
9393

9494
else
9595
return QFontIcon::icon(0xf1c6);
96-
97-
9896
}
9997
}
10098

10199
if (role == Qt::TextColorRole)
102100
{
101+
102+
if (mRunners.at(index.row())->status() == AnalysisRunner::Waiting)
103+
return QColor(Qt::lightGray);
104+
103105
if (index.column() == StatusColumn)
104106
{
105-
106107
switch (mRunners.at(index.row())->status())
107108
{
108109
case AnalysisRunner::Waiting : return QColor(Qt::lightGray); break;
109110
case AnalysisRunner::Canceled: return QColor(Qt::darkRed); break;
110-
case AnalysisRunner::Running : return QColor(Qt::darkGray); break;
111+
case AnalysisRunner::Running : return QColor(Qt::black); break;
111112
case AnalysisRunner::Finished: return QColor(Qt::darkGreen); break;
112113
}
113114
}
115+
116+
return QColor("black");
117+
114118
}
115119

116120
if (role == Qt::ToolTipRole)

ui/aboutdialog.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ AboutDialog::AboutDialog(QWidget * parent)
1919

2020

2121

22-
vLayout->setContentsMargins(0,0,0,0);
23-
vLayout->setSpacing(2);
22+
// vLayout->setContentsMargins(0,0,0,0);
23+
// vLayout->setSpacing(2);
2424
setLayout(vLayout);
2525

2626
addTab(":/text/LICENSE");
@@ -64,7 +64,7 @@ void AboutDialog::addTab(const QString &textFile)
6464
void AboutDialog::drawHeader()
6565
{
6666
int pHeight = 90;
67-
int pMargin = 5;
67+
int pMargin = 25;
6868

6969
mHeader->setMinimumHeight(pHeight);
7070
mHeader->setFrameShape(QFrame::StyledPanel);
@@ -103,7 +103,8 @@ void AboutDialog::drawHeader()
103103
painter.drawText(titleRect, Qt::AlignTop, mSubtitle);
104104

105105
QPixmap labsquareLogo(":/icons/labsquare.png");
106-
painter.drawPixmap(pix.rect().right()-labsquareLogo.width() - pMargin , pix.rect().bottom() - labsquareLogo.height()- pMargin, labsquareLogo);
106+
labsquareLogo = labsquareLogo.scaled(64,64,Qt::KeepAspectRatio,Qt::SmoothTransformation);
107+
painter.drawPixmap(pix.rect().right()-labsquareLogo.width() - pMargin , pix.rect().bottom() - labsquareLogo.height() - 15, labsquareLogo);
107108

108109

109110

0 commit comments

Comments
 (0)