Skip to content

Commit

Permalink
Merge branch '4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Macieira committed Oct 21, 2009
2 parents 511c434 + 26eda5f commit af92d15
Show file tree
Hide file tree
Showing 129 changed files with 94,843 additions and 69,086 deletions.
10 changes: 10 additions & 0 deletions bin/setcepaths.bat
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ checksdk.exe -sdk "Windows Mobile 6 Professional SDK (ARMV4I)" -script tmp_creat
tmp_created_script_setup.bat
del tmp_created_script_setup.bat
echo Windows Mobile 6 Professional selected, environment is set up
) ELSE IF "%1" EQU "wincewm65professional-msvc2005" (
checksdk.exe -sdk "Windows Mobile 6 Professional SDK (ARMV4I)" -script tmp_created_script_setup.bat 1>NUL
tmp_created_script_setup.bat
del tmp_created_script_setup.bat
echo Windows Mobile 6 Professional selected, environment is set up
) ELSE IF "%1" EQU "wincewm60standard-msvc2005" (
checksdk.exe -sdk "Windows Mobile 6 Standard SDK (ARMV4I)" -script tmp_created_script_setup.bat 1>NUL
tmp_created_script_setup.bat
Expand Down Expand Up @@ -124,6 +129,11 @@ checksdk.exe -sdk "Windows Mobile 6 Professional SDK (ARMV4I)" -script tmp_creat
tmp_created_script_setup.bat
del tmp_created_script_setup.bat
echo Windows Mobile 6 Professional selected, environment is set up
) ELSE IF "%1" EQU "wincewm65professional-msvc2008" (
checksdk.exe -sdk "Windows Mobile 6 Professional SDK (ARMV4I)" -script tmp_created_script_setup.bat 1>NUL
tmp_created_script_setup.bat
del tmp_created_script_setup.bat
echo Windows Mobile 6 Professional selected, environment is set up
) ELSE IF "%1" EQU "wincewm60standard-msvc2008" (
checksdk.exe -sdk "Windows Mobile 6 Standard SDK (ARMV4I)" -script tmp_created_script_setup.bat 1>NUL
tmp_created_script_setup.bat
Expand Down
8 changes: 4 additions & 4 deletions demos/embedded/digiflip/digiflip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Digits: public QWidget
QPixmap drawDigits(int n, const QRect &rect) {

int scaleFactor = 2;
#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
if (rect.height() > 240)
scaleFactor = 1;
#endif
Expand Down Expand Up @@ -192,7 +192,7 @@ class Digits: public QWidget

void paintFlip() {
QPainter p(this);
#if !defined(Q_OS_SYMBIAN)
#if !defined(Q_OS_SYMBIAN) && !defined(Q_OS_WINCE_WM)
p.setRenderHint(QPainter::SmoothPixmapTransform, true);
p.setRenderHint(QPainter::Antialiasing, true);
#endif
Expand Down Expand Up @@ -319,7 +319,7 @@ class DigiFlip : public QMainWindow
connect(slideAction, SIGNAL(triggered()), SLOT(chooseSlide()));
connect(flipAction, SIGNAL(triggered()), SLOT(chooseFlip()));
connect(rotateAction, SIGNAL(triggered()), SLOT(chooseRotate()));
#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
menuBar()->addAction(slideAction);
menuBar()->addAction(flipAction);
menuBar()->addAction(rotateAction);
Expand Down Expand Up @@ -414,7 +414,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);

DigiFlip time;
#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
time.showMaximized();
#else
time.resize(320, 240);
Expand Down
2 changes: 1 addition & 1 deletion demos/embedded/flickable/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int main(int argc, char *argv[])

ColorList list;
list.setWindowTitle("Kinetic Scrolling");
#ifdef Q_OS_SYMBIAN
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
list.showMaximized();
#else
list.resize(320, 320);
Expand Down
4 changes: 4 additions & 0 deletions demos/embedded/fluidlauncher/fluidlauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ void FluidLauncher::demoFinished()
{
setCurrentWidget(pictureFlowWidget);
inputTimer->start();

// Bring the Fluidlauncher to the foreground to allow selecting another demo
raise();
activateWindow();
}

void FluidLauncher::changeEvent(QEvent* event)
Expand Down
4 changes: 2 additions & 2 deletions demos/embedded/lightmaps/lightmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class MapZoom : public QMainWindow
connect(nightModeAction, SIGNAL(triggered()), map, SLOT(toggleNightMode()));
connect(osmAction, SIGNAL(triggered()), SLOT(aboutOsm()));

#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
menuBar()->addAction(osloAction);
menuBar()->addAction(berlinAction);
menuBar()->addAction(jakartaAction);
Expand Down Expand Up @@ -568,7 +568,7 @@ int main(int argc, char **argv)

MapZoom w;
w.setWindowTitle("OpenStreetMap");
#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
w.showMaximized();
#else
w.resize(600, 450);
Expand Down
6 changes: 4 additions & 2 deletions demos/embedded/raycasting/raycasting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ class Raycasting: public QWidget
protected:

void resizeEvent(QResizeEvent*) {
#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_WINCE_WM)
touchDevice = true;
#elif defined(Q_OS_SYMBIAN)
// FIXME: use HAL
if (width() > 480 || height() > 480)
touchDevice = true;
Expand Down Expand Up @@ -378,7 +380,7 @@ int main(int argc, char **argv)

Raycasting w;
w.setWindowTitle("Raycasting");
#if defined(Q_OS_SYMBIAN)
#if defined(Q_OS_SYMBIAN) || defined(Q_OS_WINCE_WM)
w.showMaximized();
#else
w.resize(640, 480);
Expand Down
11 changes: 9 additions & 2 deletions demos/qmediaplayer/mediaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ MediaPlayer::MediaPlayer(const QString &filePath,
connect(&m_MediaObject, SIGNAL(finished()), this, SLOT(finished()));
connect(&m_MediaObject, SIGNAL(stateChanged(Phonon::State, Phonon::State)), this, SLOT(stateChanged(Phonon::State, Phonon::State)));
connect(&m_MediaObject, SIGNAL(bufferStatus(int)), this, SLOT(bufferStatus(int)));
connect(&m_MediaObject, SIGNAL(hasVideoChanged(bool)), this, SLOT(hasVideoChanged(bool)));

rewindButton->setEnabled(false);
playButton->setEnabled(false);
Expand All @@ -339,8 +340,6 @@ void MediaPlayer::stateChanged(Phonon::State newstate, Phonon::State oldstate)
Q_UNUSED(oldstate);

if (oldstate == Phonon::LoadingState) {
m_videoWindow.setVisible(m_MediaObject.hasVideo());
info->setVisible(!m_MediaObject.hasVideo());
QRect videoHintRect = QRect(QPoint(0, 0), m_videoWindow.sizeHint());
QRect newVideoRect = QApplication::desktop()->screenGeometry().intersected(videoHintRect);
if (!m_hasSmallScreen) {
Expand All @@ -367,6 +366,9 @@ void MediaPlayer::stateChanged(Phonon::State newstate, Phonon::State oldstate)
case Phonon::PausedState:
case Phonon::StoppedState:
playButton->setIcon(playIcon);

m_videoWidget->setFullScreen(false);

if (m_MediaObject.currentSource().type() != Phonon::MediaSource::Invalid){
playButton->setEnabled(true);
rewindButton->setEnabled(true);
Expand Down Expand Up @@ -843,3 +845,8 @@ void MediaPlayer::aspectChanged(QAction *act)
m_videoWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAuto);
}

void MediaPlayer::hasVideoChanged(bool bHasVideo)
{
info->setVisible(!bHasVideo);
m_videoWindow.setVisible(bHasVideo);
}
1 change: 1 addition & 0 deletions demos/qmediaplayer/mediaplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public slots:
void playPause();
void scaleChanged(QAction *);
void aspectChanged(QAction *);
void hasVideoChanged(bool);

private slots:
void setAspect(int);
Expand Down
1 change: 1 addition & 0 deletions demos/spreadsheet/spreadsheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ void SpreadSheet::setupContents()
table->setItem(8, 2, new SpreadSheetItem("1240"));

table->setItem(9, 2, new SpreadSheetItem());
table->item(9, 2)->setBackgroundColor(Qt::lightGray);

// column 3
table->setItem(0, 3, new SpreadSheetItem("Currency"));
Expand Down
6 changes: 6 additions & 0 deletions dist/changes-4.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ information about a particular change.
QRegion. The native handle is for reading out only. Any GDI calls
made on the HRGN handle will not affect the QRegion.

- [259221] QFileInfo::symLinkTarget() now supports NTFS symbolic links
thanks to Konstantin Ritt (merge request 1217).

- The reading code of QLocalSocket on Windows has been rewritten to improve
reading performance.

****************************************************************************
* Important Behavior Changes *
****************************************************************************
Expand Down
Loading

0 comments on commit af92d15

Please sign in to comment.