Skip to content

Commit

Permalink
Starting working on #3
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-poidevin committed May 2, 2017
1 parent 0a43df9 commit e651289
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
7 changes: 7 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ bool MainWindow::init()
logger = new Logger(this, fileName, this->ui->logWindow);
logger->setShowDateTime(false);

//Configure GitHub icom
QLabel *githubIcon = new QLabel(this->ui->centralWidget);
githubIcon->setText("<a href=\"https://github.com/julian-poidevin/MBPMid2010_GPUFix/\">GitHub Link</a>");
githubIcon->setTextFormat(Qt::RichText);
githubIcon->setTextInteractionFlags(Qt::TextBrowserInteraction);
githubIcon->setOpenExternalLinks(true);

//Search for compatibility
if(isCompatibleVersion(getMBPModelVersion()))
{
Expand Down
4 changes: 3 additions & 1 deletion mainwindow.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#define VERSION "0.1"
#define VERSION "0.1.1"
#define APP_NAME "MBPMid2010-GPU-Fix"

#include <QMainWindow>
Expand All @@ -24,6 +24,8 @@
#include <QDesktopServices>
#include <QLibrary>
#include <QInputDialog>
#include <QLabel>
#include <QPixmap>

#include "logger.h"

Expand Down
21 changes: 20 additions & 1 deletion mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>400</width>
<height>184</height>
<height>216</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -70,6 +70,25 @@
<string>Restore Default Config</string>
</property>
</widget>
<widget class="QLabel" name="githubIcon">
<property name="geometry">
<rect>
<x>180</x>
<y>180</y>
<width>31</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>ressource/gitlabicon.png</pixmap>
</property>
<property name="openExternalLinks">
<bool>false</bool>
</property>
</widget>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
Expand Down
Binary file added ressource/gitlabicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e651289

Please sign in to comment.