#include "BaseWindow.h"
#include <QPushButton>
#include <QPalette>
#include <QPixmap>
#include <QBrush>
#include "TransparentPushButton.h"
#include "WindowManager.h"
#include <cstdlib>
BaseWindow
::BaseWindow(const char *backgroundFileName,
QWidget *parent
){
resize(1024, 768);
setWindowState(windowState() ^ Qt::WindowFullScreen);
palette.
setBrush(backgroundRole
(),
QBrush(pixmap
));
setPalette(palette);
TransparentPushButton *quit = new TransparentPushButton(990, 368, 34, 34, this);
setFocus();
QObject::connect(quit,
SIGNAL(clicked
()), WindowManager
::TheManager,
SLOT(standby
()));
}
#include "BaseWindow.h"
#include <QPushButton>
#include <QPalette>
#include <QPixmap>
#include <QBrush>
#include "TransparentPushButton.h"
#include "WindowManager.h"
#include <cstdlib>
BaseWindow::BaseWindow(const char *backgroundFileName, QWidget *parent)
: QMainWindow(parent)
{
resize(1024, 768);
setWindowState(windowState() ^ Qt::WindowFullScreen);
QPalette palette;
QPixmap pixmap = QPixmap(backgroundFileName);
palette.setBrush(backgroundRole(), QBrush(pixmap));
setPalette(palette);
TransparentPushButton *quit = new TransparentPushButton(990, 368, 34, 34, this);
setFocus();
QObject::connect(quit, SIGNAL(clicked()), WindowManager::TheManager, SLOT(standby()));
}
To copy to clipboard, switch view to plain text mode
I think it's not working beacuse of the problem with X quoted before.
Bookmarks