mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Code Cleanup: GUI elements
This commit is contained in:
@@ -383,7 +383,6 @@ GcPane::setCursorShape(DragState d)
|
||||
setCursor(Qt::SizeBDiagCursor);
|
||||
break;
|
||||
case Move:
|
||||
//setCursor(Qt::OpenHandCursor); //XXX sub widgets don't set the cursor...
|
||||
setCursor(Qt::ArrowCursor);
|
||||
break;
|
||||
default:
|
||||
@@ -408,28 +407,4 @@ GcPane::resizeEvent (QResizeEvent *)
|
||||
}
|
||||
|
||||
void
|
||||
GcPane::flip()
|
||||
{
|
||||
#if 0
|
||||
// XXX broken!
|
||||
QStateMachine *machine = new QStateMachine(this);
|
||||
QState *s0 = new QState();
|
||||
s0->assignProperty(scene, "rotation", 0);
|
||||
QState *s1 = new QState();
|
||||
s1->assignProperty(scene, "rotation", 90);
|
||||
QAbstractTransition *t1 = s0->addTransition(widget, SIGNAL(flipRequest()), s1);
|
||||
QPropertyAnimation *yRotationAnim = new QPropertyAnimation(scene, "rotation");
|
||||
yRotationAnim->setDuration(250);
|
||||
t1->addAnimation(yRotationAnim);
|
||||
QState *s2 = new QState();
|
||||
//QObject::connect(s2, SIGNAL(entered()), this, SLOT(togglePage()));
|
||||
s2->assignProperty(scene, "rotation", -90);
|
||||
s1->addTransition(s1, SIGNAL(polished()), s2);
|
||||
QAbstractTransition *t2 = s2->addTransition(s0);
|
||||
t2->addAnimation(yRotationAnim);
|
||||
machine->addState(s0);
|
||||
machine->addState(s1);
|
||||
machine->addState(s2);
|
||||
machine->start();
|
||||
#endif
|
||||
}
|
||||
GcPane::flip() { }
|
||||
|
||||
@@ -159,7 +159,7 @@ GcToolButton::GcToolButton(QWidget *parent, QAction *action) : QWidget(parent),
|
||||
label = new QLabel(action->iconText(), this);
|
||||
mlayout->addWidget(label);
|
||||
|
||||
//XXX quick hack
|
||||
// quick hack -- default when open is always analysis
|
||||
if (action->iconText() == "Analysis") selected = true;
|
||||
else selected = false;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include "PerformanceManagerWindow.h"
|
||||
#include "PfPvWindow.h"
|
||||
#include "HrPwWindow.h"
|
||||
#include "RaceWindow.h" // XXX not done
|
||||
#include "RideEditor.h"
|
||||
#include "RideNavigator.h"
|
||||
#include "RideSummaryWindow.h"
|
||||
@@ -106,7 +105,7 @@ GcWindowRegistry::initialize()
|
||||
|
||||
// instantiate a new window
|
||||
GcWindow *
|
||||
GcWindowRegistry::newGcWindow(GcWinID id, MainWindow *main) //XXX mainWindow will go soon
|
||||
GcWindowRegistry::newGcWindow(GcWinID id, MainWindow *main)
|
||||
{
|
||||
GcWindow *returning = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user