mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
Added Graph Snapshots nag message.. Not sure if this bug is really fixed
This commit is contained in:
parent
397cbd50ee
commit
dc3ef05d38
@ -47,9 +47,9 @@ void InitGraphs()
|
|||||||
//mediumfont=new QFont("Serif",11);
|
//mediumfont=new QFont("Serif",11);
|
||||||
//bigfont=new QFont("Serif",35);
|
//bigfont=new QFont("Serif",35);
|
||||||
|
|
||||||
defaultfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible);
|
defaultfont->setStyleHint(QFont::AnyStyle,QFont::OpenGLCompatible);
|
||||||
mediumfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible);
|
mediumfont->setStyleHint(QFont::AnyStyle,QFont::OpenGLCompatible);
|
||||||
bigfont->setStyleHint(QFont::Serif ,QFont::OpenGLCompatible);
|
bigfont->setStyleHint(QFont::AnyStyle,QFont::OpenGLCompatible);
|
||||||
//mediumfont->setBold(true);
|
//mediumfont->setBold(true);
|
||||||
_graph_init=true;
|
_graph_init=true;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<style type='text/css'>
|
||||||
|
<!--h1,p,a,td,body { font-family: 'FreeSans', 'Sans Serif' } --/>
|
||||||
|
p,a,td,body { font-size: 14px }
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body leftmargin=0 topmargin=0 rightmargin=0>
|
<body leftmargin=0 topmargin=0 rightmargin=0>
|
||||||
<table width="100%" cellspacing=0 cellpadding=4 border=0 >
|
<table width="100%" cellspacing=0 cellpadding=4 border=0 >
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
|
#include <QMessageBox>
|
||||||
#include "preferencesdialog.h"
|
#include "preferencesdialog.h"
|
||||||
#include "ui_preferencesdialog.h"
|
#include "ui_preferencesdialog.h"
|
||||||
#include "SleepLib/machine_common.h"
|
#include "SleepLib/machine_common.h"
|
||||||
@ -256,3 +257,10 @@ void PreferencesDialog::on_bigFontSize_valueChanged(int arg1)
|
|||||||
{
|
{
|
||||||
ui->bigFont->currentFont().setPointSize(arg1);
|
ui->bigFont->currentFont().setPointSize(arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PreferencesDialog::on_useGraphSnapshots_toggled(bool checked)
|
||||||
|
{
|
||||||
|
if (checked && QMessageBox::question(this,"Warning","The Graph Snapshots feature (used by the Pie Chart in Daily stats panel) has been known to not work on some older computers.\n\nIf you experience a crash because of it, you will have to remove your SleepApp folder and recreate your profile.\n\n(I'm fairly sure this Qt bug is fixed now, but this has not been tested enough. If you have previously seen the pie chart, it's perfectly ok.)\n\nAre you sure you want to enable it?",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) {
|
||||||
|
ui->useGraphSnapshots->setChecked(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -37,6 +37,8 @@ private slots:
|
|||||||
|
|
||||||
void on_bigFontSize_valueChanged(int arg1);
|
void on_bigFontSize_valueChanged(int arg1);
|
||||||
|
|
||||||
|
void on_useGraphSnapshots_toggled(bool checked);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::PreferencesDialog *ui;
|
Ui::PreferencesDialog *ui;
|
||||||
Profile * profile;
|
Profile * profile;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>4</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="visualTab">
|
<widget class="QWidget" name="visualTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@ -463,6 +463,13 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="margin">
|
<property name="margin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_9">
|
||||||
|
<property name="text">
|
||||||
|
<string>This page is yet another work in progress. Please ignore.</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||||
<item>
|
<item>
|
||||||
@ -486,13 +493,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_9">
|
|
||||||
<property name="text">
|
|
||||||
<string>This page is yet another work in progress. Please ignore.</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTreeWidget" name="graphTree">
|
<widget class="QTreeWidget" name="graphTree">
|
||||||
<property name="headerHidden">
|
<property name="headerHidden">
|
||||||
|
Loading…
Reference in New Issue
Block a user