<file>res/images/refresh_s.png</file>
<file>res/images/send_position.png</file>
<file>res/images/send_position_s.png</file>
+ <file>res/images/show_position.png</file>
+ <file>res/images/show_position_s.png</file>
<file>res/images/side_bar_left.png</file>
<file>res/images/side_bar_right.png</file>
<file>res/images/sliding_bar_left.png</file>
<file>res/images/list_item_bottom.png</file>
<file>res/images/list_item_middle.png</file>
<file>res/images/list_item_top.png</file>
- <file>res/images/show_position.png</file>
- <file>res/images/show_position_s.png</file>
<file>res/dummy/nmealog.txt</file>
</qresource>
</RCC>
connect(m_ui, SIGNAL(refreshUserData()),
this, SLOT(refreshUserData()));
- connect(m_gps, SIGNAL(timeout()), m_ui, SLOT(gpsTimeout()));
- connect(m_gps, SIGNAL(error(QString)), m_ui, SLOT(gpsError(QString)));
- connect(m_ui, SIGNAL(enableGPS(bool)), this, SLOT(enableGPS(bool)));
+ connect(m_gps, SIGNAL(timeout()),
+ m_ui, SLOT(gpsTimeout()));
+ connect(m_gps, SIGNAL(error(QString)),
+ m_ui, SLOT(gpsError(QString)));
+ connect(m_ui, SIGNAL(enableGPS(bool)),
+ this, SLOT(enableGPS(bool)));
connect(m_gps, SIGNAL(position(QPointF)),
m_ui, SIGNAL(positionReceived(QPointF)));
m_email(),
m_loginAttempts(0),
m_password(),
- m_refresh(0)
+ m_refresh(0),
+ m_webView(0)
{
qDebug() << __PRETTY_FUNCTION__;
{
qDebug() << __PRETTY_FUNCTION__;
+ if(m_webView)
+ delete m_webView;
+
delete m_mainlayout;
}
void FacebookAuthentication::start()
{
- qDebug() << __PRETTY_FUNCTION__;
- if (!verifyCredentials(m_loginCredentials)){
+ qDebug() << __PRETTY_FUNCTION__;
+
+ if (!verifyCredentials(m_loginCredentials)) {
- m_webView = new QWebView(this);
+ m_webView = new QWebView;
m_loginDialog = new LoginDialog(this);
connect(m_webView, SIGNAL(urlChanged(const QUrl &)),
this, SLOT(loginDialogDone(QString,QString)));
if(m_loginDialog->exec() != QDialog::Accepted) {
- // if login dialog was canceled we need to stop processing webview
+ // if login dialog was canceled we need to stop processing webview
// stop and disconnect m_webView;
m_webView->stop();
disconnect(m_webView, SIGNAL(loadFinished(bool)),
toggleProgressIndicator(true);
m_refresh = true;
setCentralWidget(m_webView);
- this->show();
m_webView->hide();
+ this->show();
}
else
emit credentialsReady(m_loginCredentials);
gps/gpspositioninterface.h
QT += network \
webkit
-
DEFINES += QT_NO_DEBUG_OUTPUT
!maemo5 {
message(QJson built in)
message(Make sure you have QJson development headers installed)
message(install headers with: sudo apt-get install libqjson-dev)
-
}
maemo5 {
SOURCES += gps/gpsposition.cpp
void MainWindow::createMenus()
{
qDebug() << __PRETTY_FUNCTION__;
+
m_toSettingsAct = new QAction(tr("Settings"), this);
m_toSettingsAct->setObjectName(tr("Settings"));
connect(m_toSettingsAct, SIGNAL(triggered()), this, SLOT(openSettingsDialog()));
/*******************************************************************************
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
-
private slots:
/**
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
-
private:
bool m_autoCenteringEnabled; ///< Enable
FriendListPanel *friendsListPanel; ///< Instance of friends list panel