Something went wrong. Try again.
Billing program for the appliance repair company Seoane.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940#include "../Negocio/CapaNegocio.h"#include "../Negocio/Articulo.h"#include "../Negocio/Cliente.h"#include "../Negocio/Factura.h"#include "../Negocio/Presupuesto.h"#include "../Gui/MainWindow.h"
#include <iostream>#include <string>#include <list>#include <QApplication>
using namespace std;
/****ATRIBUTO GLOBAL PARA SOLO TRABAJAR CON UNA INSTANCIA DE LA CAPA DE NEGOCIO****/CapaNegocio * const capaNegocio = new CapaNegocio;
int main(int argc, char* argv[]){
QApplication app(argc, argv); app.setWindowIcon(QIcon("Gui/images/icono.ico")); QSplashScreen *splash = new QSplashScreen; splash->setPixmap(QPixmap("Gui/images/splash.png")); splash->show();
Qt::Alignment bottomRight = Qt::AlignRight | Qt::AlignBottom;
splash->showMessage(QObject::tr("Cargando..."), bottomRight, Qt::black); capaNegocio->inicializar(); MainWindow main(capaNegocio); main.showMaximized(); splash->finish(&main); delete splash;
return app.exec();}