Skip to content

Commit

Permalink
Update:
Browse files Browse the repository at this point in the history
- Add support for both Qt4 and Qt5
- Remove embedded-server application - no use
- Update build scripts - fix dependencies checks for win32
  • Loading branch information
Sergey Dryabzhinsky committed Jul 5, 2014
1 parent 017c879 commit 424d522
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 220 deletions.
2 changes: 1 addition & 1 deletion debian/control.qt5
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Homepage: https://code.google.com/p/qt-webkit-kiosk/

Package: qt-webkit-kiosk
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, phonon-backend-gstreamer
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: It's one-window browser writen on Qt5 & QtWebkit
This is simple browser written on Qt5 & QtWebkit.
Usualy runing in fullscreen mode, but supports maximized and fixed size window mode.
Expand Down
1 change: 1 addition & 0 deletions setup.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CONFIG(debug, debug|release) {
message(Debug build)
} else {
# here comes release specific statements
message(Release build)
CONFIG -= debug
DEFINES += QT_NO_DEBUG_OUTPUT
}
Expand Down
4 changes: 2 additions & 2 deletions src/anyoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ AnyOption::useCommandArgs( int _argc, QStringList _argv)
}

void
AnyOption::useFiileName( const char *_filename )
AnyOption::useFileName( const char *_filename )
{
filename = _filename;
file_set = true;
Expand Down Expand Up @@ -952,7 +952,7 @@ AnyOption::processFile()
bool
AnyOption::processFile( const char *filename )
{
useFiileName(filename );
useFileName(filename );
return ( processFile() );
}

Expand Down
56 changes: 0 additions & 56 deletions src/embedded_server.cpp

This file was deleted.

28 changes: 0 additions & 28 deletions src/embedded_server.h

This file was deleted.

6 changes: 0 additions & 6 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,9 +855,6 @@ void MainWindow::attachJavascripts()
QString file_name;
quint32 countScripts = 0;

QWebElement bodyElem = view->page()->mainFrame()->findFirstElement("body");
QString content = "";

while (scriptsIterator.hasNext()) {
file_name = scriptsIterator.next();

Expand Down Expand Up @@ -911,9 +908,6 @@ void MainWindow::attachStyles()
QFileInfo finfo = QFileInfo();
quint32 countStyles = 0;

QWebElement headElem = view->page()->mainFrame()->findFirstElement("head");
QString content = "";

while (stylesIterator.hasNext()) {
file_name = stylesIterator.next();

Expand Down
2 changes: 1 addition & 1 deletion src/player/multimedia.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "config.h"
#include "qplayer.h"
#include "multimedia.h"

QPlayer::QPlayer()
{
Expand Down
13 changes: 10 additions & 3 deletions src/player/multimedia.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#ifndef QPLAYER_H
#define QPLAYER_H
#ifndef QPLAYER_MULTIMEDIA_H
#define QPLAYER_MULTIMEDIA_H

/**
* Sould be used only with Qt-5.0+
* Qt 4 don't have MediaPlayer
*/

#include <QtCore>
#ifdef QT5
#include <QtMultimedia/QMediaPlayer>
#endif

class QPlayer : public QObject
{
Expand All @@ -21,4 +28,4 @@ class QPlayer : public QObject

};

#endif // QPLAYER_H
#endif // QPLAYER_MULTIMEDIA_H
1 change: 1 addition & 0 deletions src/player/null.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ QPlayer::QPlayer()

void QPlayer::play(QString soundFile)
{
Q_UNUSED(soundFile);
}
40 changes: 0 additions & 40 deletions src/qt-embedded-server.cpp

This file was deleted.

46 changes: 0 additions & 46 deletions src/qt-embedded-server.pro

This file was deleted.

Loading

0 comments on commit 424d522

Please sign in to comment.