From a9de502e769a4921c248f2d921cdec346551fb4e Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 6 May 2015 12:03:47 -0700 Subject: [PATCH] removing commented out old implementation. --- libraries/ui/src/InfoView.cpp | 65 ----------------------------------- 1 file changed, 65 deletions(-) diff --git a/libraries/ui/src/InfoView.cpp b/libraries/ui/src/InfoView.cpp index 264848cf05..3f80c97c4c 100644 --- a/libraries/ui/src/InfoView.cpp +++ b/libraries/ui/src/InfoView.cpp @@ -85,68 +85,3 @@ void InfoView::setUrl(const QUrl& url) { } } - -//#include -//#include -//#include -//#include -//#include -//#include -// -//#include -//#include -// -//#include "InfoView.h" -// -//static const float MAX_DIALOG_HEIGHT_RATIO = 0.9f; -// -// -// -//InfoView::InfoView(bool forced, QString path) : _forced(forced) -//{ -// setWindowFlags(Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint); -// -// QString absPath = QFileInfo(PathUtils::resourcesPath() + path).absoluteFilePath(); -// QUrl url = QUrl::fromLocalFile(absPath); -// -// page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks); -// connect(this, SIGNAL(linkClicked(QUrl)), this, SLOT(linkClickedInfoView(QUrl))); -// -// load(url); -// connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loaded(bool))); -//} -// -//void InfoView::showFirstTime(QString path) { -// new InfoView(false, path); -//} -// -//void InfoView::forcedShow(QString path) { -// new InfoView(true, path); -//} -// -// -//void InfoView::loaded(bool ok) { -// if (!ok || !shouldShow()) { -// deleteLater(); -// return; -// } -// -// QDesktopWidget* desktop = qApp->desktop(); -// QWebFrame* mainFrame = page()->mainFrame(); -// -// int height = mainFrame->contentsSize().height() > desktop->height() ? -// desktop->height() * MAX_DIALOG_HEIGHT_RATIO : -// mainFrame->contentsSize().height(); -// -// resize(mainFrame->contentsSize().width(), height); -// move(desktop->screen()->rect().center() - rect().center()); -// setWindowTitle(title()); -// setAttribute(Qt::WA_DeleteOnClose); -// show(); -//} -// -//void InfoView::linkClickedInfoView(QUrl url) { -// close(); -// QDesktopServices::openUrl(url); -//} -//#endif \ No newline at end of file