minor compatibility updates (added missing headers, simple function name changes etc)

preferencesAboutTextFull
Craig Watson 9 years ago
parent a060459e1a
commit 4b15c535ec
  1. 2
      src/desktop/UBCustomCaptureWindow.cpp
  2. 3
      src/desktop/UBCustomCaptureWindow.h
  3. 1
      src/desktop/UBWindowCapture_linux.cpp
  4. 1
      src/document/UBDocumentController.h
  5. 4
      src/domain/UBGraphicsWidgetItem.cpp
  6. 1
      src/domain/UBUndoCommand.h
  7. 8
      src/frameworks/UBCryptoUtils.cpp
  8. 5
      src/frameworks/UBPlatformUtils_linux.cpp
  9. 9
      src/gui/UBActionPalette.cpp
  10. 2
      src/gui/UBActionPalette.h
  11. 1
      src/gui/UBColorPicker.h
  12. 4
      src/gui/UBDockPalette.cpp
  13. 1
      src/gui/UBDocumentTreeWidget.h
  14. 4
      src/gui/UBDownloadWidget.cpp
  15. 3
      src/gui/UBFeaturesActionBar.cpp
  16. 3
      src/gui/UBFeaturesActionBar.h
  17. 10
      src/gui/UBFeaturesWidget.cpp
  18. 4
      src/gui/UBFeaturesWidget.h
  19. 1
      src/gui/UBMagnifer.h
  20. 2
      src/gui/UBMainWindow.cpp
  21. 2
      src/gui/UBMessageWindow.h
  22. 6
      src/gui/UBMessagesDialog.cpp
  23. 3
      src/gui/UBMessagesDialog.h
  24. 2
      src/gui/UBMousePressFilter.cpp
  25. 1
      src/gui/UBRubberBand.cpp
  26. 1
      src/gui/UBScreenMirror.cpp
  27. 1
      src/gui/UBScreenMirror.h
  28. 6
      src/gui/UBToolWidget.cpp
  29. 1
      src/gui/UBToolWidget.h
  30. 2
      src/gui/UBToolbarButtonGroup.cpp
  31. 4
      src/gui/UBToolbarButtonGroup.h
  32. 1
      src/gui/UBWidgetMirror.h
  33. 1
      src/gui/UBZoomPalette.cpp
  34. 4
      src/network/UBNetworkAccessManager.cpp
  35. 4
      src/pdf-merger/Utils.cpp
  36. 2
      src/pdf/GraphicsPDFItem.cpp
  37. 1
      src/pdf/UBWebPluginPDFWidget.cpp
  38. 8
      src/podcast/UBPodcastController.cpp
  39. 1
      src/podcast/UBPodcastRecordingPalette.h
  40. 2
      src/tools/UBAbstractDrawRuler.cpp
  41. 1
      src/tools/UBAbstractDrawRuler.h
  42. 2
      src/tools/UBGraphicsCompass.cpp
  43. 3
      src/web/UBOEmbedParser.cpp
  44. 1
      src/web/UBWebController.cpp
  45. 1
      src/web/UBWebKitUtils.cpp
  46. 1
      src/web/browser/WBBrowserWindow.cpp
  47. 1
      src/web/browser/WBChaseWidget.cpp
  48. 1
      src/web/browser/WBChaseWidget.h
  49. 3
      src/web/browser/WBDownloadManager.cpp
  50. 1
      src/web/browser/WBDownloadManager.h
  51. 1
      src/web/browser/WBEditTableView.h
  52. 1
      src/web/browser/WBModelMenu.h
  53. 1
      src/web/browser/WBSearchLineEdit.cpp
  54. 1
      src/web/browser/WBSearchLineEdit.h
  55. 2
      src/web/browser/WBSqueezeLabel.h
  56. 2
      src/web/browser/WBTabWidget.cpp
  57. 8
      src/web/browser/WBTabWidget.h
  58. 13
      src/web/browser/WBToolBarSearch.cpp
  59. 4
      src/web/browser/WBUrlLineEdit.cpp
  60. 3
      src/web/browser/WBUrlLineEdit.h
  61. 2
      src/web/browser/WBWebTrapWebView.cpp
  62. 1
      src/web/browser/WBWebTrapWebView.h
  63. 2
      src/web/browser/WBWebView.cpp

@ -24,6 +24,8 @@
#include <QApplication>
#include <QDesktopWidget>
#include "UBCustomCaptureWindow.h" #include "UBCustomCaptureWindow.h"

@ -29,6 +29,9 @@
#define UBCUSTOMCAPTUREWINDOW_H_ #define UBCUSTOMCAPTUREWINDOW_H_
#include <QtGui> #include <QtGui>
#include <QDialog>
#include <QRubberBand>
/** /**
* This class is used to do the custom capture of Uninotes * This class is used to do the custom capture of Uninotes
**/ **/

@ -24,6 +24,7 @@
#include <QDialog>
#include "UBWindowCapture.h" #include "UBWindowCapture.h"
#include "UBDesktopAnnotationController.h" #include "UBDesktopAnnotationController.h"

@ -29,6 +29,7 @@
#define UBDOCUMENTCONTROLLER_H_ #define UBDOCUMENTCONTROLLER_H_
#include <QtGui> #include <QtGui>
#include <QTreeWidgetItem>
#include "document/UBDocumentContainer.h" #include "document/UBDocumentContainer.h"
namespace Ui namespace Ui

@ -27,6 +27,7 @@
#include <QtNetwork> #include <QtNetwork>
#include <QtXml> #include <QtXml>
#include <QWebFrame>
#include "UBGraphicsWidgetItem.h" #include "UBGraphicsWidgetItem.h"
#include "UBGraphicsScene.h" #include "UBGraphicsScene.h"
@ -121,7 +122,8 @@ void UBGraphicsWidgetItem::initialize()
page()->setPalette(palette); page()->setPalette(palette);
page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
connect(page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(javaScriptWindowObjectCleared())); connect(page()->mainFrame(), &QWebFrame::javaScriptWindowObjectCleared,
this, &UBGraphicsWidgetItem::javaScriptWindowObjectCleared);
connect(page(), SIGNAL(geometryChangeRequested(const QRect&)), this, SLOT(geometryChangeRequested(const QRect&))); connect(page(), SIGNAL(geometryChangeRequested(const QRect&)), this, SLOT(geometryChangeRequested(const QRect&)));
connect(this, SIGNAL(loadFinished(bool)), this, SLOT(mainFrameLoadFinished (bool))); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(mainFrameLoadFinished (bool)));
connect(page()->mainFrame(), SIGNAL(initialLayoutCompleted()), this, SLOT(initialLayoutCompleted())); connect(page()->mainFrame(), SIGNAL(initialLayoutCompleted()), this, SLOT(initialLayoutCompleted()));

@ -29,6 +29,7 @@
#define UBABSTRACTUNDOCOMMAND_H_ #define UBABSTRACTUNDOCOMMAND_H_
#include <QtGui> #include <QtGui>
#include <QUndoCommand>
#include <core/UB.h> #include <core/UB.h>
class UBUndoCommand : public QUndoCommand class UBUndoCommand : public QUndoCommand

@ -92,13 +92,13 @@ QString UBCryptoUtils::symetricEncrypt(const QString& clear)
free(ciphertext); free(ciphertext);
return QString::fromAscii(cipheredData.toBase64()); return QString::fromLatin1(cipheredData.toBase64());
} }
QString UBCryptoUtils::symetricDecrypt(const QString& encrypted) QString UBCryptoUtils::symetricDecrypt(const QString& encrypted)
{ {
QByteArray encryptedData = QByteArray::fromBase64(encrypted.toAscii()); QByteArray encryptedData = QByteArray::fromBase64(encrypted.toLatin1());
int encryptedLength = encryptedData.length(); int encryptedLength = encryptedData.length();
int paddingLength = 0; int paddingLength = 0;
@ -132,10 +132,10 @@ void UBCryptoUtils::aesInit()
{ {
int i, nrounds = 5; int i, nrounds = 5;
unsigned char key[32], iv[32]; unsigned char key[32], iv[32];
unsigned char *key_data = (unsigned char *)sAESKey.toAscii().data(); unsigned char *key_data = (unsigned char *)sAESKey.toLatin1().data();
int key_data_len = sAESKey.length(); int key_data_len = sAESKey.length();
i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha1(), (unsigned char *)sAESSalt.toAscii().data(), key_data, i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha1(), (unsigned char *)sAESSalt.toLatin1().data(), key_data,
key_data_len, nrounds, key, iv); key_data_len, nrounds, key, iv);
if (i != 32) if (i != 32)

@ -28,6 +28,7 @@
#include "UBPlatformUtils.h" #include "UBPlatformUtils.h"
#include <QtGui> #include <QtGui>
#include <QApplication>
#include <unistd.h> #include <unistd.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -98,7 +99,7 @@ void UBPlatformUtils::bringPreviousProcessToFront()
QString UBPlatformUtils::osUserLoginName() QString UBPlatformUtils::osUserLoginName()
{ {
char *user = getenv("USER"); char *user = getenv("USER");
return QString::fromAscii(user); return QString::fromLatin1(user);
} }
QString UBPlatformUtils::computerName() QString UBPlatformUtils::computerName()
@ -108,7 +109,7 @@ QString UBPlatformUtils::computerName()
// if the name is longer than 255 the name is truncated but os doesn't ensure // if the name is longer than 255 the name is truncated but os doesn't ensure
// that the last character returned is a null character // that the last character returned is a null character
if(!gethostname(hostname,255)) if(!gethostname(hostname,255))
return QString::fromAscii(hostname); return QString::fromLatin1(hostname);
else else
return "NOT FOUND"; return "NOT FOUND";
} }

@ -23,7 +23,8 @@
*/ */
#include <QLayout>
#include <QAction>
#include "UBActionPalette.h" #include "UBActionPalette.h"
@ -103,8 +104,10 @@ UBActionPaletteButton* UBActionPalette::createPaletteButton(QAction* action, QWi
mMapActionToButton[action] = button; mMapActionToButton[action] = button;
connect(button, SIGNAL(clicked()), this, SLOT(buttonClicked())); connect(button, &UBActionPaletteButton::clicked,
connect(action, SIGNAL(changed()), this, SLOT(actionChanged())); this, &UBActionPalette::buttonClicked);
connect(action, &QAction::changed,
this, &UBActionPalette::actionChanged);
return button; return button;
} }

@ -31,6 +31,8 @@
#include <QtGui> #include <QtGui>
#include <QPoint> #include <QPoint>
#include <QButtonGroup> #include <QButtonGroup>
#include <QToolButton>
#include "UBFloatingPalette.h" #include "UBFloatingPalette.h"
class UBActionPaletteButton; class UBActionPaletteButton;

@ -29,6 +29,7 @@
#define UBCOLORPICKER_H_ #define UBCOLORPICKER_H_
#include <QtGui> #include <QtGui>
#include <QFrame>
class UBColorPicker : public QFrame class UBColorPicker : public QFrame
{ {

@ -654,9 +654,9 @@ void UBTabDockPalette::paintEvent(QPaintEvent *)
} }
painter.save(); painter.save();
QPixmap transparencyPix(":/images/tab_mask.png"); //QPixmap transparencyPix(":/images/tab_mask.png");
if (dock->mCurrentTab != i) { if (dock->mCurrentTab != i) {
iconPixmap.setAlphaChannel(transparencyPix); //iconPixmap.setAlphaChannel(transparencyPix); // deprecated; removed for now, to be re-implemented
QColor color(0x7F, 0x7F, 0x7F, 0x3F); QColor color(0x7F, 0x7F, 0x7F, 0x3F);
painter.setBrush(QBrush(color)); painter.setBrush(QBrush(color));
} }

@ -29,6 +29,7 @@
#define UBDOCUMENTTREEWIDGET_H_ #define UBDOCUMENTTREEWIDGET_H_
#include <QtGui> #include <QtGui>
#include <QTreeWidget>
class UBDocumentProxy; class UBDocumentProxy;
class UBDocumentProxyTreeItem; class UBDocumentProxyTreeItem;

@ -61,8 +61,8 @@ UBDownloadWidget::UBDownloadWidget(QWidget *parent, const char *name):QWidget(pa
mpTree->setRootIsDecorated(false); mpTree->setRootIsDecorated(false);
mpTree->setColumnCount(2); mpTree->setColumnCount(2);
mpTree->header()->setStretchLastSection(false); mpTree->header()->setStretchLastSection(false);
mpTree->header()->setResizeMode(eItemColumn_Desc, QHeaderView::Stretch); mpTree->header()->setSectionResizeMode(eItemColumn_Desc, QHeaderView::Stretch);
mpTree->header()->setResizeMode(eItemColumn_Close, QHeaderView::Custom); mpTree->header()->setSectionResizeMode(eItemColumn_Close, QHeaderView::Custom);
mpTree->resizeColumnToContents(eItemColumn_Close); mpTree->resizeColumnToContents(eItemColumn_Close);
mpTree->header()->close(); mpTree->header()->close();
mpLayout->addWidget(mpTree, 1); mpLayout->addWidget(mpTree, 1);

@ -23,7 +23,8 @@
*/ */
#include <QButtonGroup>
#include <QAction>
#include "UBFeaturesActionBar.h" #include "UBFeaturesActionBar.h"
#include "core/memcheck.h" #include "core/memcheck.h"

@ -31,6 +31,9 @@
#include <QWidget> #include <QWidget>
#include <QToolButton> #include <QToolButton>
#include <QDropEvent> #include <QDropEvent>
#include <QLineEdit>
#include <QLayout>
#include "board/UBFeaturesController.h" #include "board/UBFeaturesController.h"
#define BUTTON_SIZE 24 #define BUTTON_SIZE 24

@ -27,6 +27,8 @@
#include <QDomDocument> #include <QDomDocument>
#include <QWebView> #include <QWebView>
#include <QWebFrame>
#include <QWidget>
#include "UBFeaturesWidget.h" #include "UBFeaturesWidget.h"
#include "gui/UBThumbnailWidget.h" #include "gui/UBThumbnailWidget.h"
@ -267,8 +269,8 @@ void UBFeaturesWidget::onDisplayMetadata( QMap<QString,QString> metadata )
{ {
QString previewImageUrl = ":images/libpalette/notFound.png"; QString previewImageUrl = ":images/libpalette/notFound.png";
QString widgetsUrl = QUrl::fromEncoded(metadata["Url"].toAscii()).toString()/*metadata.value("Url", QString())*/; QString widgetsUrl = QUrl::fromEncoded(metadata["Url"].toLatin1()).toString()/*metadata.value("Url", QString())*/;
QString widgetsThumbsUrl = QUrl::fromEncoded(metadata["thumbnailUrl"].toAscii()).toString(); QString widgetsThumbsUrl = QUrl::fromEncoded(metadata["thumbnailUrl"].toLatin1()).toString();
QString strType = UBFileSystemUtils::mimeTypeFromFileName(widgetsUrl); QString strType = UBFileSystemUtils::mimeTypeFromFileName(widgetsUrl);
UBMimeType::Enum thumbType = UBFileSystemUtils::mimeTypeFromString(strType); UBMimeType::Enum thumbType = UBFileSystemUtils::mimeTypeFromString(strType);
@ -440,7 +442,7 @@ void UBFeaturesListView::dragMoveEvent( QDragMoveEvent *event )
void UBFeaturesListView::dropEvent( QDropEvent *event ) void UBFeaturesListView::dropEvent( QDropEvent *event )
{ {
QWidget *eventSource = event->source(); QObject *eventSource = event->source();
if (eventSource && eventSource->objectName() == UBFeaturesWidget::objNameFeatureList) { if (eventSource && eventSource->objectName() == UBFeaturesWidget::objNameFeatureList) {
event->setDropAction( Qt::MoveAction ); event->setDropAction( Qt::MoveAction );
} }
@ -1172,7 +1174,7 @@ QMimeData* UBFeaturesModel::mimeData(const QModelIndexList &indexes) const
if (!typeData.isNull()) { if (!typeData.isNull()) {
typeData += UBFeaturesController::featureTypeSplitter(); typeData += UBFeaturesController::featureTypeSplitter();
} }
typeData += QString::number(element.getType()).toAscii(); typeData += QString::number(element.getType()).toLatin1();
} }
} }

@ -41,6 +41,10 @@
#include <QGraphicsLinearLayout> #include <QGraphicsLinearLayout>
#include <QStackedWidget> #include <QStackedWidget>
#include <QDropEvent> #include <QDropEvent>
#include <QPushButton>
#include <QProgressBar>
#include <QLabel>
#include <QTreeWidget>
#include "UBDockPaletteWidget.h" #include "UBDockPaletteWidget.h"
#include "core/UBSettings.h" #include "core/UBSettings.h"

@ -29,6 +29,7 @@
#define UBMAGNIFIER_H #define UBMAGNIFIER_H
#include <QtGui> #include <QtGui>
#include <QWidget>
class UBMagnifierParams class UBMagnifierParams
{ {

@ -26,6 +26,8 @@
#include <QtGui> #include <QtGui>
#include <QToolTip>
#include <QStackedLayout>
#include "UBMainWindow.h" #include "UBMainWindow.h"
#include "core/UBApplication.h" #include "core/UBApplication.h"

@ -29,6 +29,8 @@
#define UBMESSAGEWINDOW_H_ #define UBMESSAGEWINDOW_H_
#include <QtGui> #include <QtGui>
#include <QHBoxLayout>
#include <QLabel>
#include "UBFloatingPalette.h" #include "UBFloatingPalette.h"

@ -23,7 +23,9 @@
*/ */
#include <QLayout>
#include <QTextEdit>
#include <QPushButton>
#include "UBMessagesDialog.h" #include "UBMessagesDialog.h"
@ -65,4 +67,4 @@ void UBMessagesDialog::setMessages(const QList<QString> messages)
void UBMessagesDialog::dispose() void UBMessagesDialog::dispose()
{ {
delete this; delete this;
} }

@ -29,6 +29,7 @@
#define UB_MESSAGES_DIALOG_H_ #define UB_MESSAGES_DIALOG_H_
#include <QtGui> #include <QtGui>
#include <QWidget>
class UBMessagesDialog : public QWidget class UBMessagesDialog : public QWidget
{ {
@ -46,4 +47,4 @@ private:
int mMessagesFontSize; int mMessagesFontSize;
}; };
#endif /* UB_MESSAGES_DIALOG_H_ */ #endif /* UB_MESSAGES_DIALOG_H_ */

@ -23,7 +23,7 @@
*/ */
#include <QApplication>
#include "UBMousePressFilter.h" #include "UBMousePressFilter.h"

@ -28,7 +28,6 @@
#include "UBRubberBand.h" #include "UBRubberBand.h"
#include <QtGui> #include <QtGui>
#include <QtGui/QPlastiqueStyle>
#include <QStyleFactory> #include <QStyleFactory>
#ifdef Q_WS_MAC #ifdef Q_WS_MAC

@ -24,6 +24,7 @@
#include <QDesktopWidget>
#include "UBScreenMirror.h" #include "UBScreenMirror.h"

@ -29,6 +29,7 @@
#define UBSCREENMIRROR_H_ #define UBSCREENMIRROR_H_
#include <QtGui> #include <QtGui>
#include <QWidget>
class UBScreenMirror : public QWidget class UBScreenMirror : public QWidget
{ {

@ -26,6 +26,9 @@
#include <QtGui> #include <QtGui>
#include <QWebView>
#include <QWebFrame>
#include "UBToolWidget.h" #include "UBToolWidget.h"
#include "api/UBWidgetUniboardAPI.h" #include "api/UBWidgetUniboardAPI.h"
#include "api/UBW3CWidgetAPI.h" #include "api/UBW3CWidgetAPI.h"
@ -115,7 +118,8 @@ void UBToolWidget::initialize()
setFixedSize(mToolWidget->boundingRect().width() + mContentMargin * 2, mToolWidget->boundingRect().height() + mContentMargin * 2); setFixedSize(mToolWidget->boundingRect().width() + mContentMargin * 2, mToolWidget->boundingRect().height() + mContentMargin * 2);
connect(mWebView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(javaScriptWindowObjectCleared())); connect(mWebView->page()->mainFrame(), &QWebFrame::javaScriptWindowObjectCleared,
this, &UBToolWidget::javaScriptWindowObjectCleared);
mWebView->load(mToolWidget->mainHtml()); mWebView->load(mToolWidget->mainHtml());

@ -29,6 +29,7 @@
#define UBTOOLWIDGET_H_ #define UBTOOLWIDGET_H_
#include <QtGui> #include <QtGui>
#include <QWidget>
class UBGraphicsWidgetItem; class UBGraphicsWidgetItem;
class QWidget; class QWidget;

@ -28,6 +28,8 @@
#include "UBToolbarButtonGroup.h" #include "UBToolbarButtonGroup.h"
#include <QtGui> #include <QtGui>
#include <QLayout>
#include <QStyleOption>
#include "core/UBApplication.h" #include "core/UBApplication.h"
#include "core/UBSettings.h" #include "core/UBSettings.h"

@ -30,6 +30,10 @@
#include <QtGui> #include <QtGui>
#include <QWidget>
#include <QToolBar>
#include <QToolButton>
#include <QActionGroup>
class UBToolbarButtonGroup : public QWidget class UBToolbarButtonGroup : public QWidget
{ {

@ -29,6 +29,7 @@
#define UBWIDGETMIRROR_H_ #define UBWIDGETMIRROR_H_
#include <QtGui> #include <QtGui>
#include <QWidget>
class UBWidgetMirror : public QWidget class UBWidgetMirror : public QWidget
{ {

@ -28,6 +28,7 @@
#include "UBZoomPalette.h" #include "UBZoomPalette.h"
#include <QtGui> #include <QtGui>
#include <QPushButton>
#include <math.h> #include <math.h>
#include "core/UBApplication.h" #include "core/UBApplication.h"

@ -29,6 +29,8 @@
#include <QtGui> #include <QtGui>
#include <QtNetwork> #include <QtNetwork>
#include <QMessageBox>
#include <QPushButton>
#include "core/UBApplication.h" #include "core/UBApplication.h"
#include "core/UBApplicationController.h" #include "core/UBApplicationController.h"
@ -115,7 +117,7 @@ void UBNetworkAccessManager::authenticationRequired(QNetworkReply *reply, QAuthe
passwordDialog.iconLabel->setPixmap(mainWindow->style()->standardIcon(QStyle::SP_MessageBoxQuestion, 0, mainWindow).pixmap(32, 32)); passwordDialog.iconLabel->setPixmap(mainWindow->style()->standardIcon(QStyle::SP_MessageBoxQuestion, 0, mainWindow).pixmap(32, 32));
QString introMessage = tr("<qt>Enter username and password for \"%1\" at %2</qt>"); QString introMessage = tr("<qt>Enter username and password for \"%1\" at %2</qt>");
introMessage = introMessage.arg(Qt::escape(reply->url().toString())).arg(Qt::escape(reply->url().toString())); introMessage = introMessage.arg((reply->url().toString()).toHtmlEscaped()).arg((reply->url().toString()).toHtmlEscaped());
passwordDialog.introLabel->setText(introMessage); passwordDialog.introLabel->setText(introMessage);
passwordDialog.introLabel->setWordWrap(true); passwordDialog.introLabel->setWordWrap(true);

@ -78,12 +78,12 @@ double Utils::stringToDouble(const std::string & s )
std::string Utils::uIntToStr(unsigned int integer) std::string Utils::uIntToStr(unsigned int integer)
{ {
return std::string(QString::number(integer).toAscii()); return std::string(QString::number(integer).toLatin1());
} }
std::string Utils::doubleToStr(double doubleValue) std::string Utils::doubleToStr(double doubleValue)
{ {
return std::string(QString::number(doubleValue).toAscii()); return std::string(QString::number(doubleValue).toLatin1());
} }
int Utils::_stringToInt(const std::string & str) //throw ConvertException int Utils::_stringToInt(const std::string & str) //throw ConvertException

@ -29,7 +29,7 @@
#include <qglobal.h> #include <qglobal.h>
#include <QtGui/QStyleOptionGraphicsItem> #include <QStyleOptionGraphicsItem>
#include "core/memcheck.h" #include "core/memcheck.h"

@ -26,6 +26,7 @@
#include <QtGui> #include <QtGui>
#include <QAction>
#include "UBWebPluginPDFWidget.h" #include "UBWebPluginPDFWidget.h"
#include "XPDFRenderer.h" #include "XPDFRenderer.h"

@ -487,7 +487,7 @@ void UBPodcastController::processWidgetPaintEvent()
{ {
while(mWidgetRepaintRectQueue.size() > 0) while(mWidgetRepaintRectQueue.size() > 0)
{ {
repaintRect = repaintRect.unite(mWidgetRepaintRectQueue.dequeue()); repaintRect = repaintRect.united(mWidgetRepaintRectQueue.dequeue());
} }
} }
@ -582,7 +582,7 @@ void UBPodcastController::sceneChanged(const QList<QRectF> & region)
QRectF viewportRect = bv->mapToScene(QRect(0, 0, bv->width(), bv->height())).boundingRect(); QRectF viewportRect = bv->mapToScene(QRect(0, 0, bv->width(), bv->height())).boundingRect();
foreach(const QRectF rect, region) foreach(const QRectF rect, region)
{ {
QRectF maxRect = rect.intersect(viewportRect); QRectF maxRect = rect.intersected(viewportRect);
mSceneRepaintRectQueue.enqueue(maxRect); mSceneRepaintRectQueue.enqueue(maxRect);
} }
@ -623,7 +623,7 @@ void UBPodcastController::processScenePaintEvent()
{ {
while(mSceneRepaintRectQueue.size() > 0) while(mSceneRepaintRectQueue.size() > 0)
{ {
repaintRect = repaintRect.unite(mSceneRepaintRectQueue.dequeue()); repaintRect = repaintRect.united(mSceneRepaintRectQueue.dequeue());
} }
} }
@ -712,7 +712,7 @@ void UBPodcastController::encodingFinished(bool ok)
{ {
QString location; QString location;
if (mPodcastRecordingPath == QDesktopServices::storageLocation(QDesktopServices::DesktopLocation)) if (mPodcastRecordingPath == QStandardPaths::writableLocation(QStandardPaths::DesktopLocation))
location = tr("on your desktop ..."); location = tr("on your desktop ...");
else else
{ {

@ -32,6 +32,7 @@
#include "UBPodcastController.h" #include "UBPodcastController.h"
#include <QtGui> #include <QtGui>
#include <QLabel>
class UBVuMeter; class UBVuMeter;

@ -69,7 +69,7 @@ void UBAbstractDrawRuler::create(QGraphicsItem& item)
item.setFlag(QGraphicsItem::ItemIsSelectable, true); item.setFlag(QGraphicsItem::ItemIsSelectable, true);
item.setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); item.setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
item.setAcceptsHoverEvents(true); item.setAcceptHoverEvents(true);
mCloseSvgItem = new QGraphicsSvgItem(":/images/closeTool.svg", &item); mCloseSvgItem = new QGraphicsSvgItem(":/images/closeTool.svg", &item);
mCloseSvgItem->setVisible(false); mCloseSvgItem->setVisible(false);

@ -29,6 +29,7 @@
#define UB_ABSTRACTDRAWRULER_H_ #define UB_ABSTRACTDRAWRULER_H_
#include <QtGui> #include <QtGui>
#include <QGraphicsItem>
#include "frameworks/UBGeometryUtils.h" #include "frameworks/UBGeometryUtils.h"
class UBGraphicsScene; class UBGraphicsScene;

@ -72,7 +72,7 @@ UBGraphicsCompass::UBGraphicsCompass()
setFlag(QGraphicsItem::ItemIsSelectable, true); setFlag(QGraphicsItem::ItemIsSelectable, true);
setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
setAcceptsHoverEvents(true); setAcceptHoverEvents(true);
mCloseSvgItem = new QGraphicsSvgItem(":/images/closeTool.svg", this); mCloseSvgItem = new QGraphicsSvgItem(":/images/closeTool.svg", this);
mCloseSvgItem->setVisible(false); mCloseSvgItem->setVisible(false);

@ -226,8 +226,7 @@ sOEmbedContent UBOEmbedParser::getXMLInfos(const QString &xml)
void UBOEmbedParser::onParseContent(QString url) void UBOEmbedParser::onParseContent(QString url)
{ {
QUrl qurl; QUrl qurl = QUrl::fromEncoded(url.toLatin1());
qurl.setEncodedUrl(url.toAscii());
QNetworkRequest req; QNetworkRequest req;
req.setUrl(qurl); req.setUrl(qurl);

@ -28,6 +28,7 @@
#include <QtGui> #include <QtGui>
#include <QDomDocument> #include <QDomDocument>
#include <QXmlQuery> #include <QXmlQuery>
#include <QWebFrame>
#include "frameworks/UBPlatformUtils.h" #include "frameworks/UBPlatformUtils.h"

@ -24,6 +24,7 @@
#include <QDebug> #include <QDebug>
#include <QWebFrame>
#include "UBWebKitUtils.h" #include "UBWebKitUtils.h"

@ -70,6 +70,7 @@
#include <QtGui> #include <QtGui>
#include <QtWebKit> #include <QtWebKit>
#include <QDesktopWidget>
#include "core/UBSettings.h" #include "core/UBSettings.h"
#include "core/UBSetting.h" #include "core/UBSetting.h"

@ -69,6 +69,7 @@
#include "WBChaseWidget.h" #include "WBChaseWidget.h"
#include <QtGui> #include <QtGui>
#include <QApplication>
#include "core/memcheck.h" #include "core/memcheck.h"

@ -70,6 +70,7 @@
#define WBCHASEWIDGET_H #define WBCHASEWIDGET_H
#include <QtGui> #include <QtGui>
#include <QWidget>
class WBChaseWidget : public QWidget class WBChaseWidget : public QWidget

@ -70,6 +70,7 @@
#include <QtGui> #include <QtGui>
#include <QtWebKit> #include <QtWebKit>
#include <QFileDialog>
#include "network/UBAutoSaver.h" #include "network/UBAutoSaver.h"
#include "network/UBNetworkAccessManager.h" #include "network/UBNetworkAccessManager.h"
@ -145,7 +146,7 @@ void WBDownloadItem::getFileName()
{ {
QSettings settings; QSettings settings;
settings.beginGroup(QLatin1String("downloadmanager")); settings.beginGroup(QLatin1String("downloadmanager"));
QString defaultLocation = !mCustomDownloadPath.isEmpty() ? mCustomDownloadPath : QDesktopServices::storageLocation(QDesktopServices::DesktopLocation); QString defaultLocation = !mCustomDownloadPath.isEmpty() ? mCustomDownloadPath : QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
QString downloadDirectory = settings.value(QLatin1String("downloadDirectory"), defaultLocation).toString(); QString downloadDirectory = settings.value(QLatin1String("downloadDirectory"), defaultLocation).toString();
if (!downloadDirectory.isEmpty()) if (!downloadDirectory.isEmpty())
downloadDirectory += QLatin1Char('/'); downloadDirectory += QLatin1Char('/');

@ -74,6 +74,7 @@
#include <QtNetwork> #include <QtNetwork>
#include <QtCore> #include <QtCore>
#include <QFileIconProvider>
class WBDownloadItem : public QWidget, public Ui_DownloadItem class WBDownloadItem : public QWidget, public Ui_DownloadItem
{ {

@ -70,6 +70,7 @@
#define WBEDITTABLEVIEW_H #define WBEDITTABLEVIEW_H
#include <QtGui> #include <QtGui>
#include <QTableView>
class WBEditTableView : public QTableView class WBEditTableView : public QTableView
{ {

@ -70,6 +70,7 @@
#define WBMODELMENU_H #define WBMODELMENU_H
#include <QtGui> #include <QtGui>
#include <QMenu>
// A QMenu that is dynamically populated from a QAbstractItemModel // A QMenu that is dynamically populated from a QAbstractItemModel
class WBModelMenu : public QMenu class WBModelMenu : public QMenu

@ -69,6 +69,7 @@
#include "WBSearchLineEdit.h" #include "WBSearchLineEdit.h"
#include <QtGui> #include <QtGui>
#include <QMenu>
#include "core/memcheck.h" #include "core/memcheck.h"

@ -72,6 +72,7 @@
#include "WBUrlLineEdit.h" #include "WBUrlLineEdit.h"
#include <QtGui> #include <QtGui>
#include <QAbstractButton>
class WBSearchButton; class WBSearchButton;

@ -69,7 +69,7 @@
#ifndef WBSQUEEZELABEL_H #ifndef WBSQUEEZELABEL_H
#define WBSQUEEZELABEL_H #define WBSQUEEZELABEL_H
#include <QtGui/QLabel> #include <QLabel>
class WBSqueezeLabel : public QLabel class WBSqueezeLabel : public QLabel
{ {

@ -78,6 +78,8 @@
#include <QtGui> #include <QtGui>
#include <QSvgWidget> #include <QSvgWidget>
#include <QListView>
#include <QLabel>
#include "core/memcheck.h" #include "core/memcheck.h"

@ -70,6 +70,14 @@
#define WBTABWIDGET_H #define WBTABWIDGET_H
#include <QtGui> #include <QtGui>
#include <QShortcut>
#include <QStackedWidget>
#include <QCompleter>
#include <QTabBar>
#include <QWebPage>
#include <QTabWidget>
#include <QLineEdit>
/* /*
Tab bar with a few more features such as a context menu and shortcuts Tab bar with a few more features such as a context menu and shortcuts
*/ */

@ -70,6 +70,8 @@
#include <QtGui> #include <QtGui>
#include <QtWebKit> #include <QtWebKit>
#include <QMenu>
#include <QCompleter>
#include "network/UBAutoSaver.h" #include "network/UBAutoSaver.h"
@ -142,10 +144,13 @@ void WBToolbarSearch::searchNow()
} }
QUrl url(QLatin1String("http://www.google.com/search")); QUrl url(QLatin1String("http://www.google.com/search"));
url.addQueryItem(QLatin1String("q"), searchText); QUrlQuery urlQuery;
url.addQueryItem(QLatin1String("ie"), QLatin1String("UTF-8"));
url.addQueryItem(QLatin1String("oe"), QLatin1String("UTF-8")); urlQuery.addQueryItem(QLatin1String("q"), searchText);
url.addQueryItem(QLatin1String("client"), QLatin1String("uniboard-browser")); urlQuery.addQueryItem(QLatin1String("ie"), QLatin1String("UTF-8"));
urlQuery.addQueryItem(QLatin1String("oe"), QLatin1String("UTF-8"));
urlQuery.addQueryItem(QLatin1String("client"), QLatin1String("uniboard-browser"));
url.setQuery(urlQuery);
emit search(url); emit search(url);
} }

@ -74,6 +74,10 @@
#include "globals/UBGlobals.h" #include "globals/UBGlobals.h"
#include <QtGui> #include <QtGui>
#include <QCompleter>
#include <QLineEdit>
#include <QLabel>
#include <QApplication>
#include "core/memcheck.h" #include "core/memcheck.h"

@ -70,6 +70,9 @@
#define WBURLLINEEDIT_H #define WBURLLINEEDIT_H
#include <QtGui> #include <QtGui>
#include <QWidget>
#include <QLineEdit>
#include <QStyleOption>
#include "WBWebView.h" #include "WBWebView.h"

@ -29,6 +29,8 @@
#include <QtGui> #include <QtGui>
#include <QtWebKit> #include <QtWebKit>
#include <QWebHitTestResult>
#include <QWebFrame>
#include "web/UBWebKitUtils.h" #include "web/UBWebKitUtils.h"

@ -30,6 +30,7 @@
#include <QtGui> #include <QtGui>
#include <QtWebKit> #include <QtWebKit>
#include <QWebView>
class WBWebTrapWebView : public QWebView class WBWebTrapWebView : public QWebView

@ -82,6 +82,8 @@
#include <QtGui> #include <QtGui>
#include <QtWebKit> #include <QtWebKit>
#include <QtUiTools/QUiLoader> #include <QtUiTools/QUiLoader>
#include <QMessageBox>
#include <QWebFrame>
#include "core/memcheck.h" #include "core/memcheck.h"

Loading…
Cancel
Save