maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 clock replacement [continued] (https://talk.maemo.org/showthread.php?t=81582)

Estel 2012-02-02 19:42

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1159625)
I can :)
- Some people want seconds in the clock, some don't

Who doesn't want it? Remember, we're talking about worldclock opened, *not* clock in status area/status menu.

AapoRantalainen 2012-02-02 21:12

Re: N900 clock replacement [continued]
 
How often this is called?

mainwindow.cpp:108

Code:

void MainWindow::paintEvent(QPaintEvent*)
{
    QPainter painter(this);
    painter.drawImage(this->rect(), QImage("/etc/hildon/theme/backgrounds/clock.png"));
}

Put println, enable seconds. Is it called every second then?

How it is defined that there aren't background image in portrait mode? (I qmaemo5rotator.cpp, but doesn't understand)

nicolai 2012-02-02 21:15

Re: N900 clock replacement [continued]
 
Hi ade,

remove the paintEvent method all together and put this
in your mainwindow constructor:
Code:

    this->setAutoFillBackground(true);

    QPalette pal2(palette());
    pal2.setBrush(QPalette::Window, QPixmap("/etc/hildon/theme/backgrounds/clock.png"));
    this->setPalette(pal2);


ade 2012-02-02 21:44

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by nicolai (Post 1159663)
Hi ade,

remove the paintEvent method all together and put this
in your mainwindow constructor:
Code:

    this->setAutoFillBackground(true);

    QPalette pal2(palette());
    pal2.setBrush(QPalette::Window, QPixmap("/etc/hildon/theme/backgrounds/clock.png"));
    this->setPalette(pal2);


cpu usage about 0.6% instead of 10%.

Why do you make it look so easy :)

ed_boner 2012-02-03 01:40

Re: N900 clock replacement [continued]
 
@nicolai...finally..someone who cares for the final thing in an coherent user point of view..someone who cares to embrace problems and is a geniouis solving them..thank you very much nicolai..dont konw if your solution works but iam finally seing this going the right way...wish other developpers were so comitted open minded and eficient as you.

freemangordon 2012-02-03 05:58

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1159689)
cpu usage about 0.6% instead of 10%.

Why do you make it look so easy :)

Cleaning up the mess :P

ade 2012-02-03 08:07

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ed_boner (Post 1159745)
@nicolai...finally..someone who cares for the final thing in an coherent user point of view..someone who cares to embrace problems and is a geniouis solving them..thank you very much nicolai..dont konw if your solution works but iam finally seing this going the right way...wish other developpers were so comitted open minded and eficient as you.

Yes, couldn't agree more. Maybe we should just put all those non committed, narrow minded, inefficient developers in a (internet-free) jail so they can no longer be a threat to our community. Just as a precaution of course.

artpra 2012-02-03 08:23

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by ade (Post 1159588)
Something else I noticed while having my N900 in Polish settings: the days for repeating alarms where separated by two comma's (every day ended with a comma in advance). Is that correct, is it my phone, or should it be changed?

I was just about to report about this issue. I see them too and as Estel stated, it shouldn`t look like this.
Also confirming, that banner is now corrected.

ade 2012-02-03 10:06

Re: N900 clock replacement [continued]
 
Quote:

Originally Posted by artpra (Post 1159840)
I was just about to report about this issue. I see them too and as Estel stated, it shouldn`t look like this.
Also confirming, that banner is now corrected.

Just noticed it is not an issue of the replacement clock, but polish abbreviated days are returned ending with a comma. Looking at the judgement of polish persons like you and Estel, I will try to remove any trailing comma to end up with a single comma.

don_falcone 2012-02-03 10:29

Re: N900 clock replacement [continued]
 
This absolutely needs polishing! :D (pun intended)


All times are GMT. The time now is 21:27.

vBulletin® Version 3.8.8