diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp index 8a7a00f0..207cf80b 100644 --- a/Graphs/gGraphView.cpp +++ b/Graphs/gGraphView.cpp @@ -1215,7 +1215,7 @@ gGraphView::gGraphView(QWidget *parent, gGraphView * shared) : backlines=new GLBuffer(QColor(0,0,0,0),10000,GL_LINES); // big fat shared line list quads=new GLBuffer(QColor(0,0,0,0),1024,GL_QUADS); // big fat shared line list quads->forceAntiAlias(true); - setFocusPolicy(Qt::StrongFocus); + //setFocusPolicy(Qt::StrongFocus); } gGraphView::~gGraphView() { diff --git a/docs/index.html b/docs/index.html index 4b8bc595..069d9bda 100644 --- a/docs/index.html +++ b/docs/index.html @@ -28,7 +28,7 @@ p,a,td,body { font-size: 14px }
-

Copyright: ©2011 Mark Watkins (jedimark)

+

Copyright: ©2011 Mark Watkins (jedimark)

License: This software is released freely under the GNU Public License.

Do NOT rely on this softwares accuracy when making medical decisions. Talk to your doctor.

diff --git a/mainwindow.cpp b/mainwindow.cpp index 6123cbde..f8b0ec08 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -430,3 +430,22 @@ void MainWindow::replyFinished(QNetworkReply * reply) } reply->deleteLater(); } + +#include +#include +void MainWindow::on_action_Screenshot_triggered() +{ + + QTimer::singleShot(250,this,SLOT(DelayedScreenshot())); +} +void MainWindow::DelayedScreenshot() +{ + QPixmap pixmap = QPixmap::grabWindow(this->winId()); + QString a=pref.Get("{home}")+"/Screenshots"; + QDir dir(a); + if (!dir.exists()){ + dir.mkdir(a); + } + a+="/screenshot-"+QDateTime::currentDateTime().toString(Qt::ISODate)+".png"; + pixmap.save(a); +} diff --git a/mainwindow.h b/mainwindow.h index fa4db4d4..02ff9b05 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -86,6 +86,9 @@ private slots: void on_actionCheck_for_Updates_triggered(); void replyFinished(QNetworkReply*); + void on_action_Screenshot_triggered(); + void DelayedScreenshot(); + private: Ui::MainWindow *ui; Daily * daily; diff --git a/mainwindow.ui b/mainwindow.ui index b2c13249..3c5ebc04 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -598,6 +598,8 @@ + + @@ -752,6 +754,14 @@ Check for &Updates + + + Take &Screenshot + + + F12 + +