Commit e546c2c3c1d02f1b859f30d91858533dfc509c4e

inserted resource image files, removed some .bak file.
  
1717SOURCES += src/fbpermissiondialog.cpp
1818SOURCES += src/fbstreamdialog.cpp
1919SOURCES += src/fbfeeddialog.cpp
20
2120HEADERS += inc/fbconnectglobal.h
2221HEADERS += inc/fbsession.h
2322HEADERS += inc/fbrequest.h
2727HEADERS += inc/fbpermissiondialog.h
2828HEADERS += inc/fbstreamdialog.h
2929HEADERS += inc/fbfeeddialog.h
30RESOURCES += resource/qfbconnectimages.qrc
Binary files differ
Binary files differ
Binary files differ
Binary files differ
Binary files differ
Binary files differ
Binary files differ
Binary files differ
Binary files differ
Binary files differ
  
1These image files are taken from the iphone version of the facebook connect sdk.
2If these are out of date, check the iphone version, which is officially maintained by facebook.
  
1<RCC>
2 <qresource prefix="/images">
3 <file>images/close.png</file>
4 <file>images/fbicon.png</file>
5 <file>images/login2.png</file>
6 <file>images/login2_down.png</file>
7 <file>images/login.png</file>
8 <file>images/login_down.png</file>
9 <file>images/logout.png</file>
10 <file>images/logout_down.png</file>
11 </qresource>
12</RCC>
  
1Read http://qt.nokia.com/doc/4.6/resources.html for how to use resources.
2Basicually you need to call
3
4Q_INIT_RESOURCE(qfbconnectimages); // when you want to use the qfacebookconnect resources.
5Q_CLEANUP_RESOURCE(qfbconnectimages); // when you no longer want to use the images resource and want to free some memory.
6
7once you have the resources loaded you can access a particular resource like so:
8
9cutAct = new QAction(QIcon(":/images/login2.png"), tr("Login to facebook"), this);
  
1#include "mainwindow.h"
2#include "ui_mainwindow.h"
3
4#include <QtGlobal>
5
6MainWindow::MainWindow(QWidget *parent) :
7 QMainWindow(parent),
8 ui(new Ui::MainWindow)
9{
10 ui->setupUi(this);
11
12 iFBSession = FBSession::sessionForApplication("b4db7267221ecf6333e60c1213d724cb", "f054071e18bd026c0b2e2f97ff68a7c5", QString());
13}
14
15MainWindow::~MainWindow()
16{
17 delete ui;
18}
19
20void MainWindow::changeEvent(QEvent *e)
21{
22 QMainWindow::changeEvent(e);
23 switch (e->type()) {
24 case QEvent::LanguageChange:
25 ui->retranslateUi(this);
26 break;
27 default:
28 break;
29 }
30}
31
32void MainWindow::on_pushButton_clicked()
33{
34 iLoginDialog.load();
35}