[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/traverso/widgets TransportConsoleW...
From: |
Nicola Doebelin |
Subject: |
[Traverso-commit] traverso/src/traverso/widgets TransportConsoleW... |
Date: |
Fri, 16 May 2008 07:40:16 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Nicola Doebelin <n_doebelin> 08/05/16 07:40:16
Modified files:
src/traverso/widgets: TransportConsoleWidget.cpp
Log message:
* resizing was sometimes not possible on os x
* the last digits of the time label didn't look 'random' enough
* the font of the time label was not set correctly at startup
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/widgets/TransportConsoleWidget.cpp?cvsroot=traverso&r1=1.3&r2=1.4
Patches:
Index: TransportConsoleWidget.cpp
===================================================================
RCS file:
/sources/traverso/traverso/src/traverso/widgets/TransportConsoleWidget.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- TransportConsoleWidget.cpp 14 May 2008 17:49:27 -0000 1.3
+++ TransportConsoleWidget.cpp 16 May 2008 07:40:13 -0000 1.4
@@ -107,7 +107,7 @@
connect(&pm(), SIGNAL(projectLoaded(Project*)), this,
SLOT(set_project(Project*)));
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(update_label()));
- place_label();
+ resize(width(), height());
}
@@ -198,7 +198,10 @@
void TransportConsoleWidget::transfer_started()
{
- m_updateTimer.start(100);
+ // use an odd number for the update interval.
+ // with round numbers the last digit stays the same
+ // most of the time, but not always, which looks jerky
+ m_updateTimer.start(123);
m_playAction->setChecked(true);
m_playAction->setIcon(QIcon(":/playstop"));
m_recAction->setEnabled(false);
@@ -244,7 +247,7 @@
{
// scale the font in the text label
QFont font = m_label->font();
- int fs = 0.6 * m_label->height();
+ int fs = 0.5 * m_label->height();
font.setPixelSize(fs);
m_label->setFont(font);
- [Traverso-commit] traverso/src/traverso/widgets TransportConsoleW...,
Nicola Doebelin <=