path fix
This commit is contained in:
parent
8a919e572f
commit
3d1052f54c
3 changed files with 3 additions and 6 deletions
|
@ -8,7 +8,6 @@ Counter::Counter(Player *_player, int _id, const QString &_name, QColor _color,
|
|||
{
|
||||
if (radius > Player::counterAreaWidth / 2)
|
||||
radius = Player::counterAreaWidth / 2;
|
||||
|
||||
if (player->getLocal()) {
|
||||
menu = new QMenu(name);
|
||||
aSet = new QAction(this);
|
||||
|
|
|
@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
// qInstallMsgHandler(myMessageOutput);
|
||||
QApplication app(argc, argv);
|
||||
app.addLibraryPath("plugins");
|
||||
app.addLibraryPath(app.applicationDirPath() + "/plugins");
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
QCoreApplication::setOrganizationName("Cockatrice");
|
||||
|
@ -73,10 +73,8 @@ int main(int argc, char *argv[])
|
|||
MainWindow ui(&translator);
|
||||
qDebug("main(): MainWindow constructor finished");
|
||||
|
||||
//set Icon
|
||||
QIcon icon("resources/icon.svg");
|
||||
QIcon icon(":/resources/icon.svg");
|
||||
ui.setWindowIcon(icon);
|
||||
//
|
||||
|
||||
ui.show();
|
||||
qDebug("main(): ui.show() finished");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
WindowMain::WindowMain(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
importer = new OracleImporter("../oracle", this);
|
||||
importer = new OracleImporter(qApp->applicationDirPath() + "../oracle", this);
|
||||
|
||||
QVBoxLayout *checkboxLayout = new QVBoxLayout;
|
||||
QList<SetToDownload> &sets = importer->getSets();
|
||||
|
|
Loading…
Reference in a new issue