MainDialog::MainDialog() 
    : q2t_(new Quotes2Time())
{
    Global::init();
    setFixedSize(Global::desktop.width()*0.6f, Global::desktop.height()*0.5f);
    netman_.reset(new NetworkManager(this));

    setupButtons();
    setupTable();
    setupIndicator();
    setupStatus();

    setWindowTitle(Global::productFullName());
}
Exemple #2
0
ThumbnailWidget::ThumbnailWidget(Page * page) :
    page_(page),
    pixmap_(NULL),
    label_(NULL),
    indicator_(NULL),
    drag_progress_(false),
    hightlighted_(false)
{
    setFlag(QGraphicsItem::ItemClipsToShape);
    setFlag(QGraphicsItem::ItemClipsChildrenToShape);
    setAcceptDrops(true);

    setupPixmap();
    setupLabel();
    setupToolTip();
    setupIndicator();

    connect(page, SIGNAL(rotated(int)), SLOT(handlePageRotate()));
    connect(page, SIGNAL(changed()), SLOT(updatePageIndicators()));
    connect(page, SIGNAL(exported()), SLOT(updatePageIndicators()));
    connect(page, SIGNAL(thumbChanged()), SLOT(setupPixmap()));

    updatePageIndicators();
}