~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kontact/plugins/kjots/kjots_plugin.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  action->setWhatsThis(
50
50
    i18nc( "@info:whatsthis",
51
51
           "You will be presented with a dialog where you can create a new jots page." ) );
52
 
  connect( action, SIGNAL(triggered(bool)), SLOT( newPage()) );
 
52
  connect( action, SIGNAL(triggered(bool)), SLOT(newPage()) );
53
53
  insertNewAction( action );
54
54
 
55
55
  action = new KAction( KIcon( "address-book-new" ),
61
61
  action->setWhatsThis(
62
62
    i18nc( "@info:whatsthis",
63
63
           "You will be presented with a dialog where you can create a new jots book." ) );
64
 
  connect( action, SIGNAL(triggered(bool)), SLOT( newBook()) );
 
64
  connect( action, SIGNAL(triggered(bool)), SLOT(newBook()) );
65
65
  insertNewAction( action );
66
66
 
67
67
  mUniqueAppWatcher = new KontactInterface::UniqueAppWatcher(
120
120
 
121
121
bool KJotsPlugin::queryClose() const
122
122
{
123
 
  if ( m_interface )
 
123
  if ( m_interface ) {
124
124
    return m_interface->queryClose();
 
125
  }
125
126
  return true;
126
127
}
127
128
 
135
136
{
136
137
  // Ensure part is loaded
137
138
  (void)plugin()->part();
138
 
#if 0  
 
139
#if 0
139
140
  org::kde::KJotsWidget kjots(
140
141
    "org.kde.kjots", "/KJotsWidget", QDBusConnection::sessionBus() );
141
 
#endif  
 
142
#endif
142
143
  return KontactInterface::UniqueAppHandler::newInstance();
143
144
 
144
145
}