Active Topics

 


Reply
Thread Tools
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#11
Exactly! Did you solve this in MediaBar? Now I'm trying to use QWidget instead of QDialog...

put on gitorius what? FastSMS or the "plugin" ? If you mean the plugin first I have to clean a bit the code

EDIT: re-reading your post I'm not so sure that I explained well:

Open conversation
hold the phone in vertical
click on text-field
my keyboard is opened in portrait
close my keyboard
conversation window remains in portrait

If I return to task manager landscape view returns

Last edited by realsportcars; 2011-01-19 at 20:15.
 

The Following User Says Thank You to realsportcars For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#12
Yeah, encountered that with settings, didn't find a fix for it yet (you could save state before opening and resume that state after closing the keyboard, with some X11 magic ).

The plugin, gitorious helps a lot for others to submit patches/have a first look at the code etc.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#13
The problem is the parent windows: Trying it in microB, with autorotation activated works well...

There are some things to try but I'm quite sure that nnone of them will works...
* Return to QMainWindow: perhaps I can raise the parent from the plugin, but I have no idea if commit works fine

* Activate autorotation in plugin: no idea if it is possible and I'm quite sure that there isn't gain in this

* Leave all and play FarmVille for whole life

Last edited by realsportcars; 2011-01-19 at 20:57.
 

The Following 2 Users Say Thank You to realsportcars For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#14
Or maybe do what the stock keyboard does so it's transparent, open keyboard in landscape, fire setAttribute(PORTRAIT_FLAG) through a single shot QTimer 500ms later so it rotates to landscape, then when closing the keyboard, flip back to landscape and close.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#15
Originally Posted by MohammadAG View Post
Or maybe do what the stock keyboard does so it's transparent, open keyboard in landscape, fire setAttribute(PORTRAIT_FLAG) through a single shot QTimer 500ms later so it rotates to landscape, then when closing the keyboard, flip back to landscape and close.
But in this way orientation is fixed to portrait. Is it? If D-Bus sends
signal for orientation change I can listen to him and set the flag based on
it. Not sure if dbus emit such signal when top window is landscape fixed
 

The Following User Says Thank You to realsportcars For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#16
Just use Qt's attribute.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#17
This way autorotation seems works:

Code:
void FastSMSWidget::orientationChanged(QString sOrientation)
{
    qDebug() << "Orientation changed:" << sOrientation;

    if(sOrientation.compare(Core::ORIENTATION_PORTRAIT) == 0 ||
       sOrientation.compare(Core::ORIENTATION_LANDSCAPE) == 0)
    {
        hide();
        show();
    }
}
orientationChanged is a slot for

Code:
    QDBusConnection systemBus = QDBusConnection::systemBus();
    systemBus.connect("com.nokia.mce",
                      "/com/nokia/mce/signal",
                      "com.nokia.mce.signal",
                      "sig_device_orientation_ind",
                      this, SLOT(orientationChanged(QString)));

What do you think?

EDIT: my fault, code of orientationChanged is like that

Last edited by realsportcars; 2011-01-19 at 23:51.
 

The Following 3 Users Say Thank You to realsportcars For This Useful Post:
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#18
 

The Following 20 Users Say Thank You to realsportcars For This Useful Post:
Posts: 87 | Thanked: 47 times | Joined on Sep 2009 @ Sorocaba, Brasil
#19
Originally Posted by realsportcars View Post
early preview

http://www.youtube.com/watch?v=42OpUSS2Cac
Very nice!!
 

The Following 2 Users Say Thank You to dalonso For This Useful Post:
MaddogG's Avatar
Posts: 234 | Thanked: 175 times | Joined on Jun 2010 @ Genova (Italy)
#20
Great job!

Italians do it better
__________________
Some say the world will end in fire; some say in segfaults...
 

The Following User Says Thank You to MaddogG For This Useful Post:
Reply

Tags
great keyboard!, portrait, portrait vkb, realsportcars, thank you, thanks wikiwide, _keyboards want, _to be free


 
Forum Jump


All times are GMT. The time now is 15:50.