mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
These are all design documents that I thought I had lost. It's may make me cringe, but it's still cool to use it to see how far I've come.
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#include <QtCore>
|
|
#include <QApplication>
|
|
#include <QRect>
|
|
#include <QDebug>
|
|
#include <QTableView>
|
|
|
|
#include "mainwindow.h"
|
|
#include "ui_mainwindow.h"
|
|
#include "guiprocessandupdate.h"
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
QMainWindow(parent),
|
|
ui(new Ui::MainWindow)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
|
//Class Initializations
|
|
|
|
|
|
//Signal and Slot Connections
|
|
connect(ui->actionExit, SIGNAL(triggered()), this, SLOT(close())); //Connect exit button to application close
|
|
qDebug() << "Screen Width = " << QApplication::desktop()->geometry().width();
|
|
ui->tabWidget->setFixedWidth(QApplication::desktop()->geometry().width()-10); //Set Width of tabWidget to ten pixels less than the screen resolution width
|
|
ui->tabWidget->setFixedHeight((QApplication::desktop()->geometry().height()*4)/5); //Set height of tabWidget to 9/10 the size of the screen height
|
|
ui->tabWidget->setTabText(1, "Table Data");
|
|
for(int i = 0 ; i < 100 ; i++){
|
|
ui->textGeneralStatusAndNotifications->append("This is a test...");
|
|
}
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
delete ui;
|
|
}
|