Multiline toolbar in .rc file
Hi I'm porting kiten to framework5. And currently have problem with the toolbar. The toolbar is displayed as one line, seems the newline=true ignored. I also tried using "gui" as the root element instead of "kpartui", both gave the same result(one line toolbar). This is the kitenui.rc content http://paste.kde.org/pxi3cqs8j Is there any example for multiline toolbar? Regards, Reza >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: Multiline toolbar in .rc file
I forgot to mentioned earlier. Yes, i have pushed to frameworks branch for kiten. Regards, Reza On Sun, Aug 31, 2014 at 8:08 PM, Albert Astals Cid wrote: > El Diumenge, 31 d'agost de 2014, a les 14:35:00, Reza Shah va escriure: > > Hi > > > > I'm porting kiten to framework5. > > And currently have problem with the toolbar. > > The toolbar is displayed as one line, seems the newline=true ignored. > > > > I also tried using "gui" as the root element instead of "kpartui", both > > gave the same result(one line toolbar). > > > > This is the kitenui.rc content http://paste.kde.org/pxi3cqs8j > > > > Is there any example for multiline toolbar? > > > http://lxr.kde.org/search?v=kf5-qt5&_filestring=&_string=newline+AND+true+AND+ToolBar+and+name > > doesn't show many. > > Have you pushed your code to the frameworks branch? > > Cheers, > Albert > > > > > Regards, > > Reza > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: Multiline toolbar in .rc file
The screenshot: http://paste.opensuse.org/30412231 Regards, Reza On Sun, Aug 31, 2014 at 9:27 PM, Albert Astals Cid wrote: > El Diumenge, 31 d'agost de 2014, a les 20:52:50, Reza Shah va escriure: > > I forgot to mentioned earlier. > > Yes, i have pushed to frameworks branch for kiten. > > The toolbar looks fine to me, can you attach a screenshot? > > Cheers, > Albert > > > > > > > Regards, > > Reza > > > > On Sun, Aug 31, 2014 at 8:08 PM, Albert Astals Cid > wrote: > > > El Diumenge, 31 d'agost de 2014, a les 14:35:00, Reza Shah va escriure: > > > > Hi > > > > > > > > I'm porting kiten to framework5. > > > > And currently have problem with the toolbar. > > > > The toolbar is displayed as one line, seems the newline=true ignored. > > > > > > > > I also tried using "gui" as the root element instead of "kpartui", > both > > > > gave the same result(one line toolbar). > > > > > > > > This is the kitenui.rc content http://paste.kde.org/pxi3cqs8j > > > > > > > > Is there any example for multiline toolbar? > > > > > > > http://lxr.kde.org/search?v=kf5-qt5&_filestring=&_string=newline+AND+true+ > > > AND+ToolBar+and+name > > > > > > doesn't show many. > > > > > > Have you pushed your code to the frameworks branch? > > > > > > Cheers, > > > > > > Albert > > > > > > > Regards, > > > > Reza > > > > > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > > > > > > unsubscribe << > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: Multiline toolbar in .rc file
Hi Albert, I can confirm your result, i tried at different PC(same theme as my development box), and got the similar result with yours. In my development PC, i tried changing some style, but still got the problem, at my development box, it might be using some broken config. Thank you for your time. Regards, Reza On Mon, Sep 1, 2014 at 7:42 AM, Albert Astals Cid wrote: > El Dilluns, 1 de setembre de 2014, a les 06:54:56, Reza Shah va escriure: > > The screenshot: > > http://paste.opensuse.org/30412231 > > Here mine http://i.imgur.com/U3CXHoC.png > > Maybe it's a bug in oxygen/breeze? Can you try with other style? > > Cheers, > Albert > > > > > > > Regards, > > Reza > > > > On Sun, Aug 31, 2014 at 9:27 PM, Albert Astals Cid > wrote: > > > El Diumenge, 31 d'agost de 2014, a les 20:52:50, Reza Shah va escriure: > > > > I forgot to mentioned earlier. > > > > Yes, i have pushed to frameworks branch for kiten. > > > > > > The toolbar looks fine to me, can you attach a screenshot? > > > > > > Cheers, > > > > > > Albert > > > > > > > Regards, > > > > Reza > > > > > > > > On Sun, Aug 31, 2014 at 8:08 PM, Albert Astals Cid > > > > > > wrote: > > > > > El Diumenge, 31 d'agost de 2014, a les 14:35:00, Reza Shah va > escriure: > > > > > > Hi > > > > > > > > > > > > I'm porting kiten to framework5. > > > > > > And currently have problem with the toolbar. > > > > > > The toolbar is displayed as one line, seems the newline=true > > > > > > ignored. > > > > > > > > > > > > I also tried using "gui" as the root element instead of > "kpartui", > > > > > > both > > > > > > > > > gave the same result(one line toolbar). > > > > > > > > > > > > This is the kitenui.rc content http://paste.kde.org/pxi3cqs8j > > > > > > > > > > > > Is there any example for multiline toolbar? > > > > > > > http://lxr.kde.org/search?v=kf5-qt5&_filestring=&_string=newline+AND+true+ > > > > > > > > AND+ToolBar+and+name > > > > > > > > > > doesn't show many. > > > > > > > > > > Have you pushed your code to the frameworks branch? > > > > > > > > > > Cheers, > > > > > > > > > > Albert > > > > > > > > > > > Regards, > > > > > > Reza > > > > > > > > > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > > > > > > > > > > unsubscribe << > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: Building kde-workspace with latest checkout
Hi, I just cloned kde-libs,kde-workspace,kde-baseapps with this steps: mkdir $BRANCH cd $BRANCH git init git remote add -t $BRANCH -f origin $REMOTE_REPO git checkout $BRANCH Then compile everything without problem. On 9/22/11, Gorosito Gonzalo wrote: > I have this one here: > > commit 6ef2c70949c0188f72789b924d9d88b8fb72459e > Author: Aaron Seigo > Date: Mon Sep 19 16:18:52 2011 +0200 > > only allow valid values for the resize method, and add missing getters > > I also rebuilt kdelibs after I pulled from this branch. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
KCM Locale timeFormat value
Hi, How do the changes in Locale kcm propagated to KGlobal::locale() for datetime related? I put kDebug to display KGlobal::locale()->timeFormat(), but the value displayed was the old one. It will display the new one until i restart plasma-desktop. In order to always get new value i have to do like below: KSharedConfigPtr m_userConfig = KSharedConfig::openConfig( "kcmlocale-user", KConfig::IncludeGlobals ); KConfigGroup m_userSettings = KConfigGroup( m_userConfig, "Locale" ); kDebug() << "TIME FORMAT" << m_userSettings.readEntry( "TimeFormat", QString() ); instead of KGlobal::locale()->timeFormat(). Is this normal behavior or confirmed bug? Thanks, Reza >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: 10 Rasberry PIs available for projects
Hi, Just share an idea. Along with plasma media center, may be we can create a fun photo apps like in self service photo booth. And showcase this in some kde events, and let the visitor try and print their photo. Regards, Reza On Thu, Sep 27, 2012 at 4:58 AM, Lydia Pintscher wrote: > Heya folks :) > > A while ago Nokia has offered to sponsor 10 Rasberry PIs for KDE. > (Thanks Nokia!) They have now arrived in the KDE e.V. office. We need > to figure out what to do with them now. So if you have a cool idea > that you're willing to do with one of them and that would benefit KDE > please post it here within the next 2 weeks. (If there are more than > 10 proposals I can be bribed with cookies :P) > Oh and I forgot: 1 of them should go to Dario for a tutorial at the Qt > Developers Conference in the US. > > So please. What's your cool idea for a Rasberry PI? > > > Cheers > Lydia >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: Developing for KDE Based Linux OS
Hi, Recently there were many emails like this, it's really nice. I wonder how they find kde-devel address, from google search or directly from www.kde.org. I tried to browse www.kde.org and search how can i get involved in KDE development. I know under 'Community' menu we can see 'Get Involved'. But seems this menu is not easy to find by new comer. We can compare with 'Get KDE Software' badge. Maybe we can put a badge(or some other mean) for new comer interested to contribute for KDE development (i assume w.k.o not only for normal user). Regards, Reza On Wed, Oct 10, 2012 at 5:39 AM, Lydia Pintscher wrote: > On Tue, Oct 9, 2012 at 7:29 PM, Rohit wrote: >> Respected Sir, >> >> I am seriously considering developing from the KDE based Linux Operating >> Systems. Also, I have interest in participating in Google Summer of Code >> under your organisation. >> >> I have knowledge of C, PHP, Javascript, Python(basic) and Objective-C >> Programming Languages. I am willing to learn any programming language needed >> for the purpose. It will not take time as i am already familiar with the >> concept. >> >> Also, I have been using Linux Operating systems since 2 Years. So, Please >> Guide me in the Right Direction and tell me what All I need to learn for the >> purpose. > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: diff master and own branch for review
Hi Ben, Thanks for the info, just tried this and seems working fine. Regards, Reza On Wed, Nov 7, 2012 at 3:57 AM, Ben Cooksley wrote: > > You will want to merge master into your branch, which should then > allow you to generate a diff of only the changes in your branch. > > > Regards, > Ben > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: retrieve user list
Hi Daniel, It worked. Thanks, Reza On Sat, Feb 16, 2013 at 1:47 AM, Daniel Nicoletti wrote: > try KUser class > > 2013/2/15 Reza Shah : > > Hi, > > > > I need to display normal user list in my kcm module, which includes some > > data like name, home dir,etc. > > > > Is there a standard way to get user list in kde library which might work > > accross distro? > > > > Thanks, > > Reza > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
soprano cmake error
HI, I'm compiling kde-master using kdesrc-build. I only compiled default packages selected from kdesrc-build. Almost all packages can be compiled. The failed ones are soprano, akonadi, kdepimlibs. As for soprano, it could not find the qmake. I'm on archlinux, both qt5 and qt4 are installed. I wonder why, since other packages compiled properly. --- # kdesrc-build running: 'cmake' '/home/reza-devel/kdesrc/kdesupport/soprano' '-DQT_QMAKE_EXECUTABLE=qmake-qt4' '-DPYTHON_EXECUTABLE=/usr/bin/python2' '-DCMAKE_CXX_FLAGS:STRING=-pipe ' '-DCMAKE_INSTALL_PREFIX=/opt/kde4' # from directory: /home/reza-devel/kdesrc/build/kdesupport/soprano -- The C compiler identification is GNU 4.7.2 -- The CXX compiler identification is GNU 4.7.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Error at cmake/modules/FindQt4.cmake:1239 (MESSAGE): Qt qmake not found! Call Stack (most recent call first): CMakeLists.txt:46 (find_package) -- Configuring incomplete, errors occurred! --- Regards, Reza >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: soprano cmake error
I have both qmake and qmake-qt4 inside /usr/bin, yes it's inside $PATH. My $PATH content: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/tools:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/qt4/bin No problem with other kde packages. Removing FindQt4.cmake solved the problem. Thanks On Sat, Mar 9, 2013 at 3:46 PM, Thiago Macieira wrote: > On sábado, 9 de março de 2013 09.19.02, Reza Shah wrote: > > CMake Error at cmake/modules/FindQt4.cmake:1239 (MESSAGE): > > Qt qmake not found! > > Where is qmake? And is it on $PATH? > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: soprano cmake error
I can compile now. But i got these error: - several akDebug errors like agentserver.cpp:(.text+0x380): undefined reference to `akDebug()' - several Q_DECL_CONSTRUCTOR_DEPRECATED errors like In file included from /opt/kde4/include/soprano/statement.h:25:0, from kdesrc/kdesupport/akonadi/server/src/nepomuk/result.h:28, from kdesrc/kdesupport/akonadi/server/src/nepomuksearch.cpp:26: /opt/kde4/include/soprano/node.h:120:9: error: ‘Q_DECL_CONSTRUCTOR_DEPRECATED’ does not name a type Any relation with the qmake problem? Thanks On Sat, Mar 9, 2013 at 5:26 PM, Reza Shah wrote: > I have both qmake and qmake-qt4 inside /usr/bin, yes it's inside $PATH. > My $PATH content: > > /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/tools:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/qt4/bin > > No problem with other kde packages. > > Removing FindQt4.cmake solved the problem. > > Thanks > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: soprano cmake error
I'm sorry. I managed to compile soprano properly. These errors below is when compiling akonadi. Sorry for the noise. On Sat, Mar 9, 2013 at 9:17 PM, Reza Shah wrote: > I can compile now. > But i got these error: > - several akDebug errors like agentserver.cpp:(.text+0x380): undefined > reference to `akDebug()' > - several Q_DECL_CONSTRUCTOR_DEPRECATED errors like > In file included from /opt/kde4/include/soprano/statement.h:25:0, > from kdesrc/kdesupport/akonadi/server/src/nepomuk/result.h:28, > from kdesrc/kdesupport/akonadi/server/src/nepomuksearch.cpp:26: > /opt/kde4/include/soprano/node.h:120:9: error: > ‘Q_DECL_CONSTRUCTOR_DEPRECATED’ does not name a type > > Any relation with the qmake problem? > > Thanks > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: kcm source files layout
Hi Albert, Thanks for the input. - Reza On Wed, Mar 20, 2013 at 3:54 AM, Albert Astals Cid wrote: > El Dimarts, 19 de març de 2013, a les 20:46:04, Reza Shah va escriure: > > Hi > > > > What is the best practice for files placement in kcm? > > For example, my_kcm layout as follows: > > > > my_kcm/ > >CMakeList.txt > >cmake/ > >src/ > >my_kcm.action > >my_kcm.desktop > > > > Is above layout ok? > > or should i move my_kcm action and desktop to src too? > > or i should not use src (all flat)? > > Unless you're going to have lots of files/subfolders, i'd go for flat + the > cmake folder. > > Cheers, > Albert > > > > > Thanks, > > Reza > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
kde-workspace in KF5 cmake error
I just updated kde-workspace from framework-scratch. I got errors when building it as in http://paste.kde.org/pc4273542/, something about KStyle. How to fix these errors? Regards, Reza >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: kde-workspace in KF5 cmake error
I just updated again. Seems the problem fixed. Thanks. On Wed, Aug 7, 2013 at 2:15 PM, Kevin Ottens wrote: > On Wednesday 07 August 2013 11:17:22 Reza Shah wrote: > > I just updated kde-workspace from framework-scratch. > > I got errors when building it as in http://paste.kde.org/pc4273542/, > > something about KStyle. > > > > How to fix these errors? > > It was my fault, I just pushed a fix in kdelibs now, please update. > > Regards. > -- > Kévin Ottens, http://ervin.ipsquad.net > > KDAB - proud supporter of KDE, http://www.kdab.com > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
QAction and KGlobalAccel::globalShortcutChanged signal in KF5
Hi, I'm trying to port KAction to QAction. The old codes something like below: -- KShortcut cubeShortcut, cylinderShortcut; KAction* cubeAction, * cylinderAction; cubeShortcut = cubeAction->globalShortcut(); connect(cubeAction, SIGNAL(globalShortcutChanged(QKeySequence)), this, SLOT(cubeShortcutChanged(QKeySequence))); void cubeShortcutChanged(const QKeySequence& seq) { cubeShortcut = KShortcut(seq); } --- Below are the new codes(simplified), but i have doubt how to use globalShortcutChanged, and effectShortcutChanged properly. --- QList cubeShortcut; QList cylinderShortcut; QAction* cubeAction; QAction* cylinderAction; //Set shortcut KGlobalAccel::self()->setShortcut(cubeAction, QList() << Qt::CTRL + Qt::Key_F11); KGlobalAccel::self()->setShortcut(cylinderAction, QList()); //Get shortcut in new way. cubeShortcut = KGlobalAccel::self()->shortcut(cubeAction); cylinderShortcut = KGlobalAccel::self()->shortcut(cylinderAction); //Is this correct?, also if i have many QAction only one connect needed? connect(KGlobalAccel::self(), SIGNAL(globalShortcutChanged(QAction *, QKeySequence)), this, SLOT(effectShortcutChanged(QAction *, QKeySequence))); //Is this correct? void effectShortcutChanged(QAction * action, const QKeySequence& seq) { if (action == cubeAction) { cubeShortcut = QList() << seq; } else if (action == cylinderAction) { cubeShortcut = QList() << seq; } } -- Regards, Reza >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: QAction and KGlobalAccel::globalShortcutChanged signal in KF5
Thanks a lot. Regards, Reza On Wed, Aug 7, 2013 at 7:50 PM, Kevin Ottens wrote: > Hello, > > On Wednesday 07 August 2013 17:11:09 Reza Shah wrote: > > Below are the new codes(simplified), but i have doubt how to use > > globalShortcutChanged, and effectShortcutChanged properly. > > --- > > QList cubeShortcut; > > QList cylinderShortcut; > > > > QAction* cubeAction; > > QAction* cylinderAction; > > > > //Set shortcut > > KGlobalAccel::self()->setShortcut(cubeAction, QList() << > > Qt::CTRL + Qt::Key_F11); > > KGlobalAccel::self()->setShortcut(cylinderAction, QList()); > > > > //Get shortcut in new way. > > cubeShortcut = KGlobalAccel::self()->shortcut(cubeAction); > > cylinderShortcut = KGlobalAccel::self()->shortcut(cylinderAction); > > > > //Is this correct?, also if i have many QAction only one connect needed? > > connect(KGlobalAccel::self(), SIGNAL(globalShortcutChanged(QAction *, > > QKeySequence)), this, SLOT(effectShortcutChanged(QAction *, > QKeySequence))); > > > > //Is this correct? > > void effectShortcutChanged(QAction * action, const QKeySequence& seq) > > { > > if (action == cubeAction) { > > cubeShortcut = QList() << seq; > > } else if (action == cylinderAction) { > > cubeShortcut = QList() << seq; > > } > > } > > -- > > Looks correct to me indeed. > > Cheers. > -- > Kévin Ottens, http://ervin.ipsquad.net > > KDAB - proud supporter of KDE, http://www.kdab.com > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
KGlobal::locale() replacement
Hi What would be the proper replacement for KGlobal::locale() in KF5: - KLocale::global() or - QLocale::system() Regards, Reza >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
Re: KGlobal::locale() replacement
Hi, I want to replace these: KGlobal::locale()->positiveSign() and negativeSign() Currently i'm using KLocale::global()->positiveSign() and negativeSign(). I found QLocale::system() in Qt5, but i'm not sure if i should use it to replace KGlobale::locale() in my case. Regards, Reza On Thu, Aug 29, 2013 at 3:24 AM, Albert Astals Cid wrote: > El Dimecres, 28 d'agost de 2013, a les 19:34:04, Reza Shah va escriure: > > Hi > > > > What would be the proper replacement for KGlobal::locale() in KF5: > > - KLocale::global() or > > - QLocale::system() > > What do you want to do? > > Cheers, > Albert > > > > > Regards, > > Reza > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<