#include <QtGui>
#include <QtCore>
#include <iostream>
#include "Timeline.h"
#include "TestWidget.h"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 11 of file main.cpp.
13 QApplication app(argc, argv);
15 QWidget *window =
new QWidget();
16 window->resize(400,300);
19 QVBoxLayout vbox(window);
20 vbox.setAlignment(Qt::AlignTop);
28 tw->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
29 tw->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
32 QVector<int> bookmarks;
33 bookmarks << 0 << 123 << 3334 << 5543 << 8888 << 9456;
void addBookmarks(QVector< int > bookmarks)
void setMinIndex(int minIndex)
void setSliderIndex(int idx)
void setStepSize(int stepSize)
◆ testWidget
◆ tw