/**
  * arrowswidget.cpp
  * Ovladani vyberu v seznamu objektu (ve vyukovem modu).
  *
  * @author Michala Capkova
  */

#include "arrowswidget.h"

#include <QPushButton>
#include <QHBoxLayout>

/**
  * konstruktor
  */
ArrowsWidget::ArrowsWidget(QWidget *parent) : QWidget(parent)
{
    this->left = new QPushButton(tr(" <---- "), this);
    this->right = new QPushButton(tr(" ----> "), this);
    connect(this->left, SIGNAL(clicked()), this, SIGNAL(leftPressed()));
    connect(this->right, SIGNAL(clicked()), this, SIGNAL(rightPressed()));

    QHBoxLayout *mainLayout = new QHBoxLayout();
    mainLayout->addWidget(left);
    mainLayout->addWidget(right);

    this->setLayout(mainLayout);
}
