Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added animations/roda00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added animations/roda09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions backlog.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#include "backlog.h"
#include "ui_backlog.h"

extern QString estilo_normal;
extern Dados_jogador pz;

Backlog::Backlog(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Backlog)
{
ui->setupUi(this);
ui->centralwidget->setStyleSheet(estilo_normal);
}

Backlog::~Backlog()
{
delete ui;
}

void Backlog::on_btn_atualiza_clicked()
{
QSqlQuery query;
query.prepare("SELECT * FROM "+pz.getPokerTable()+"_sprint ");
query.exec();

QSqlQueryModel *modal = new QSqlQueryModel();

modal->setQuery(query);
ui->tableView->setModel(modal);
}

void Backlog::on_tableView_doubleClicked(const QModelIndex &index)
{

}

void Backlog::on_btn_planejar_clicked()
{
QModelIndexList selection = ui->tableView->selectionModel()->selectedRows();

for(int i=0; i< selection.count(); i++)
{
QModelIndex index = selection.at(i);
//qDebug() << index.row();
qDebug() << ui->tableView->model()->data(ui->tableView->model()->index(index.row(),4)).toString();
}

}
34 changes: 34 additions & 0 deletions backlog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#ifndef BACKLOG_H
#define BACKLOG_H

#include <QMainWindow>
#include <QSqlQueryModel>
#include <QSqlQuery>
#include <QSqlTableModel>
#include <QtDebug>
#include "dados_jogador.h"

namespace Ui {
class Backlog;
}

class Backlog : public QMainWindow
{
Q_OBJECT

public:
explicit Backlog(QWidget *parent = nullptr);
~Backlog();

private slots:
void on_btn_atualiza_clicked();

void on_tableView_doubleClicked(const QModelIndex &index);

void on_btn_planejar_clicked();

private:
Ui::Backlog *ui;
};

#endif // BACKLOG_H
Loading